Skip to content

Commit 97cf0db

Browse files
committed
Update proxy.conf.template
1 parent 0b4e9c5 commit 97cf0db

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

proxy/templates/proxy.conf.template

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,9 @@ server {
3535
#ssl_dhparam /etc/letsencrypt/ssl-dhparam.pem;
3636
include /etc/letsencrypt/options-ssl-nginx.conf;
3737
#
38-
client_max_body_size 8m;
39-
proxy_headers_hash_max_size 768;
40-
proxy_headers_hash_bucket_size 128;
41-
#
42-
38+
39+
rewrite ^/wp-admin$ /wp-admin/ last;
40+
4341
location / {
4442
proxy_pass http://docker_webserver;
4543
proxy_set_header X-Real-IP $remote_addr;
@@ -64,6 +62,9 @@ server {
6462
# Mitigate httpoxy attack
6563
proxy_set_header Proxy "";
6664
}
65+
location /wp-admin/ {
66+
try_files $uri /wp-admin/index.php$is_args$args;
67+
}
6768
#
6869
# deny access to .htaccess vb. files, if Apache's document root
6970
#

0 commit comments

Comments
 (0)