I do auth_request /auth; as described in https://docs.nginx.com/nginx/admin-guide/security-controls/configuring-subrequest-authentication/ How can I redirect to login page if /auth returns 401 or 403? I tried with error_page 401 403 = @error401; location = ^/securedUrl { add_header dbg-header dbg_ws_3; auth_request /auth; proxy_pass http://auth-mby jjakub - How to...