Try 502 error

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

View file

@ -50,6 +50,13 @@ http {
root /usr/share/nginx/html/errors;
internal;
}
location /bad {
proxy_pass http://backend;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location / {
proxy_pass http://frontend;
@ -58,13 +65,6 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /bad {
proxy_pass http://backend;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
error_page 502 /502.html;
}
}