소스 검색

Set url and dirs explicitly

Fixes #5
girish@cloudron.io 9 년 전
부모
커밋
175fc6976a
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      wp-config.php.template

+ 5 - 0
wp-config.php.template

@@ -35,6 +35,11 @@ $table_prefix = 'wp_';
 define('WP_HOME', '##APP_ORIGIN');
 define('WP_SITEURL', '##APP_ORIGIN');
 
+define('WP_CONTENT_URL', '##APP_ORIGIN/wp-content');
+define('WP_PLUGIN_URL', '##APP_ORIGIN/wp-content/plugins');
+define('WP_CONTENT_DIR', '/app/data/wp-content');
+define('WP_PLUGIN_DIR', '/app/data/wp-content/plugins');
+
 /*
  http://cmanios.wordpress.com/2014/04/12/nginx-https-reverse-proxy-to-wordpress-with-apache-http-and-different-port/
  http://wordpress.org/support/topic/compatibility-with-wordpress-behind-a-reverse-proxy