Fix issue with url redirection

pull/2/head
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 - ldap
expose: expose:
- "80" - "80"
restart: always
ldap: ldap:
image: osixia/openldap:1.1.7 image: osixia/openldap:1.1.7

View File

@ -3,7 +3,7 @@
<title>Home page</title> <title>Home page</title>
</head> </head>
<body> <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 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=http://localhost:8085/">link</a>. You can also log off by visiting the following <a href="/auth/logout?redirect=/">link</a>.
</body> </body>
</html> </html>

View File

@ -29,7 +29,7 @@ http {
error_page 401 = @error401; error_page 401 = @error401;
location @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 { location = /check-auth {