templates/configmap.yaml を更新
This commit is contained in:
@@ -47,21 +47,9 @@ data:
|
|||||||
rewrite ^(/[^/]+)?(/.*\.php) $2 last;
|
rewrite ^(/[^/]+)?(/.*\.php) $2 last;
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
# PHP処理(最優先)
|
||||||
try_files $uri $uri/ /index.php?$args;
|
|
||||||
}
|
|
||||||
|
|
||||||
# WordPress管理画面
|
|
||||||
location ~ ^/(wp-admin|wp-login\.php) {
|
|
||||||
try_files $uri $uri/ /index.php?$args;
|
|
||||||
}
|
|
||||||
|
|
||||||
# パーマリンク対応(投稿・固定ページ)
|
|
||||||
location ~ ^/(.+)$ {
|
|
||||||
try_files $uri $uri/ /index.php?$args;
|
|
||||||
}
|
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
|
try_files $uri =404;
|
||||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
fastcgi_pass php-fpm;
|
fastcgi_pass php-fpm;
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
@@ -82,6 +70,20 @@ data:
|
|||||||
fastcgi_read_timeout 300;
|
fastcgi_read_timeout 300;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ /index.php?$args;
|
||||||
|
}
|
||||||
|
|
||||||
|
# WordPress管理画面
|
||||||
|
location ~ ^/(wp-admin|wp-login\.php) {
|
||||||
|
try_files $uri $uri/ /index.php?$args;
|
||||||
|
}
|
||||||
|
|
||||||
|
# パーマリンク対応(投稿・固定ページ)
|
||||||
|
location ~ ^/(.+)$ {
|
||||||
|
try_files $uri $uri/ /index.php?$args;
|
||||||
|
}
|
||||||
|
|
||||||
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
|
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
|
||||||
expires max;
|
expires max;
|
||||||
log_not_found off;
|
log_not_found off;
|
||||||
|
|||||||
Reference in New Issue
Block a user