nginxでWordPressをサブディレクトリに設定する
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
[[nginx]]
* nginx の conf [#r18a6298]
location /test2 {
alias /var/www/html/hogejp/test2;
index index.php;
if (!-e $request_filename) {
rewrite ^/test2(.+)$ /test2/index.php?q=$1 l...
break;
}
location ~ ^/test2/.+\.php$ {
fastcgi_pass 127.0.0.1:9002;
fastcgi_index index.php;
fastcgi_split_path_info ^/jc8xzj(.+\.php)(.*)$;
fastcgi_param SCRIPT_FILENAME /var/www/html...
fastcgi_intercept_errors on;
include fastcgi_params;
}
}
終了行:
[[nginx]]
* nginx の conf [#r18a6298]
location /test2 {
alias /var/www/html/hogejp/test2;
index index.php;
if (!-e $request_filename) {
rewrite ^/test2(.+)$ /test2/index.php?q=$1 l...
break;
}
location ~ ^/test2/.+\.php$ {
fastcgi_pass 127.0.0.1:9002;
fastcgi_index index.php;
fastcgi_split_path_info ^/jc8xzj(.+\.php)(.*)$;
fastcgi_param SCRIPT_FILENAME /var/www/html...
fastcgi_intercept_errors on;
include fastcgi_params;
}
}
ページ名: