From 95f698fd29efecffbd69bace7ad4d2522bf90530 Mon Sep 17 00:00:00 2001 From: Eero af Heurlin Date: Sun, 26 Jan 2025 18:52:12 +0200 Subject: [PATCH] treat 495 as 302 redirect to the error page --- nginx/templates_rasenmaeher/default.conf.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx/templates_rasenmaeher/default.conf.template b/nginx/templates_rasenmaeher/default.conf.template index d975dd3d..770f545b 100644 --- a/nginx/templates_rasenmaeher/default.conf.template +++ b/nginx/templates_rasenmaeher/default.conf.template @@ -123,7 +123,7 @@ server { } # Even though users sees code 400 the code is 495 http://nginx.org/en/docs/http/ngx_http_ssl_module.html#errors - error_page 495 https://${NGINX_HOST}:${NGINX_HTTPS_PORT}/error?code=mtls_fail&exta=$ssl_client_verify; + error_page 495 =302 https://${NGINX_HOST}:${NGINX_HTTPS_PORT}/error?code=mtls_fail&exta=$ssl_client_verify; location / { if ($redir_uri != "") {