Fix issue with url redirection

This commit is contained in:
Clement Michaud 2016-12-17 21:02:26 +01:00
parent d9f6be792a
commit 32452760b9
3 changed files with 4 additions and 3 deletions

View File

@ -14,6 +14,7 @@ services:
- ldap
expose:
- "80"
restart: always
ldap:
image: osixia/openldap:1.1.7

View File

@ -3,7 +3,7 @@
<title>Home page</title>
</head>
<body>
You need to <a href="/auth/login?redirect=http://localhost:8085/">log in</a> to access the <a href="/secret.html">secret</a>!<br/><br/>
You can also log off by visiting the following <a href="/auth/logout?redirect=http://localhost:8085/">link</a>.
You need to <a href="/auth/login?redirect=/">log in</a> to access the <a href="/secret.html">secret</a>!<br/><br/>
You can also log off by visiting the following <a href="/auth/logout?redirect=/">link</a>.
</body>
</html>

View File

@ -29,7 +29,7 @@ http {
error_page 401 = @error401;
location @error401 {
return 302 http://localhost:8085/auth/login?redirect=$request_uri;
return 302 http://localhost:8080/auth/login?redirect=$request_uri;
}
location = /check-auth {