Try 502 error

This commit is contained in:
schmelczerandras 2020-07-20 16:00:22 +02:00
parent 695d8faab3
commit 7f450ac08c

View file

@ -51,15 +51,15 @@ http {
internal; internal;
} }
location / { location /bad {
proxy_pass http://frontend; proxy_pass http://backend;
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
} }
location /bad { location / {
proxy_pass http://backend; proxy_pass http://frontend;
proxy_set_header Host $http_host; proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;