Fix issue with url redirection
parent
d9f6be792a
commit
32452760b9
|
@ -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
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue