diff --git a/examples/nginx/single-file/nginx_with_vouch_single_server.conf b/examples/nginx/single-file/nginx_with_vouch_single_server.conf index 0b86d777..39060894 100644 --- a/examples/nginx/single-file/nginx_with_vouch_single_server.conf +++ b/examples/nginx/single-file/nginx_with_vouch_single_server.conf @@ -68,7 +68,7 @@ http { location @error401 { # redirect to Vouch Proxy for login - return 302 http://vouch.yourdomain.com/login?url=$scheme://$http_host$request_uri&vouch-failcount=$auth_resp_failcount&X-Vouch-Token=$auth_resp_jwt&error=$auth_resp_err; + return 302 login?url=$scheme://$http_host$request_uri&vouch-failcount=$auth_resp_failcount&X-Vouch-Token=$auth_resp_jwt&error=$auth_resp_err; # you usually *want* to redirect to Vouch running behind the same Nginx config proteced by https # but to get started you can just forward the end user to the port that vouch is running on }