Skip to content

Commit

Permalink
treat 495 as 302 redirect to the error page
Browse files Browse the repository at this point in the history
  • Loading branch information
rambo committed Jan 26, 2025
1 parent 97f5d93 commit 95f698f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nginx/templates_rasenmaeher/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -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 != "") {
Expand Down

0 comments on commit 95f698f

Please sign in to comment.