templates/configmap.yaml を更新

This commit is contained in:
2025-11-30 04:54:44 +00:00
parent ad783fbb6f
commit b4e45877a7

View File

@@ -40,6 +40,13 @@ data:
set_real_ip_from 192.168.0.0/16;
real_ip_recursive on;
# WordPress Multisite対応
if (!-e $request_filename) {
rewrite /wp-admin$ $scheme://$host$request_uri/ permanent;
rewrite ^(/[^/]+)?(/wp-.*) $2 last;
rewrite ^(/[^/]+)?(/.*\.php) $2 last;
}
location / {
try_files $uri $uri/ /index.php?$args;
}