Skip to content

Commit c4faa6f

Browse files
committed
Move proxy_pass directive to the end of location blocks
1 parent 35e4075 commit c4faa6f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/nginx/conf.d/default.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ server {
99
ssl off;
1010

1111
location / {
12-
proxy_pass http://backend;
1312
proxy_set_header Host $host;
1413
proxy_set_header X-Real-IP $remote_addr;
1514
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
1615
proxy_set_header X-Forwarded-Proto $scheme;
16+
proxy_pass http://backend;
1717
}
1818
}

config/nginx/conf.d/default_ssl.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ server {
2121
#add_header Strict-Transport-Security "max-age=31536000";
2222

2323
location / {
24-
proxy_pass http://backend_ssl;
2524
proxy_set_header Host $host;
2625
proxy_set_header X-Real-IP $remote_addr;
2726
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
2827
proxy_set_header X-Forwarded-Proto $scheme;
28+
proxy_pass http://backend_ssl;
2929
}
3030
}

0 commit comments

Comments
 (0)