From 7f450ac08c56b64f34d3875795af5a2ed7450af1 Mon Sep 17 00:00:00 2001 From: schmelczerandras Date: Mon, 20 Jul 2020 16:00:22 +0200 Subject: [PATCH] Try 502 error --- ingress/nginx-config/nginx.conf | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ingress/nginx-config/nginx.conf b/ingress/nginx-config/nginx.conf index 96ae6ad..29de4f0 100644 --- a/ingress/nginx-config/nginx.conf +++ b/ingress/nginx-config/nginx.conf @@ -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; } }