Skip to content

Commit e1835a3

Browse files
committed
Update nginx.conf.template
1 parent e414d55 commit e1835a3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

webserver/templates/nginx.conf.template

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ server {
6767
proxy_request_buffering off;
6868
#
6969
# Mitigate httpoxy attack
70-
proxy_set_header Proxy "";
71-
72-
rewrite ^([^.]*[^/])$ $1/ permanent;
70+
proxy_set_header Proxy "";
7371
}
7472
#
7573
# deny access to .htaccess vb. files, if Apache's document root
@@ -86,6 +84,7 @@ server {
8684
log_not_found off;
8785
access_log off;
8886
}
87+
#
8988
location = /robots.txt {
9089
allow all;
9190
log_not_found off;
@@ -110,7 +109,7 @@ server {
110109
try_files $uri /index.php$is_args$args;
111110
}
112111

113-
location /wp-admin/ {
112+
location /wp-admin {
114113
try_files $uri /wp-admin/index.php$is_args$args;
115114
}
116115

0 commit comments

Comments
 (0)