Skip to content

Commit 9b16950

Browse files
authored
Merge pull request #265 from bgehman/patch-1
fix: nginx_with_vouch needs absolute URI redirect
2 parents 531fc6f + ff21b54 commit 9b16950

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/nginx/single-file/nginx_with_vouch_single_server.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ http {
6868

6969
location @error401 {
7070
# redirect to Vouch Proxy for login
71-
return 302 login?url=$scheme://$http_host$request_uri&vouch-failcount=$auth_resp_failcount&X-Vouch-Token=$auth_resp_jwt&error=$auth_resp_err;
71+
return 302 $scheme://$http_host/login?url=$scheme://$http_host$request_uri&vouch-failcount=$auth_resp_failcount&X-Vouch-Token=$auth_resp_jwt&error=$auth_resp_err;
7272
# you usually *want* to redirect to Vouch running behind the same Nginx config proteced by https
7373
# but to get started you can just forward the end user to the port that vouch is running on
7474
}

0 commit comments

Comments
 (0)