From 32452760b92792a7aff1be429eae8034b58dcd5d Mon Sep 17 00:00:00 2001 From: Clement Michaud Date: Sat, 17 Dec 2016 21:02:26 +0100 Subject: [PATCH] Fix issue with url redirection --- docker-compose.yml | 1 + nginx_conf/index.html | 4 ++-- nginx_conf/nginx.conf | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 8e6d52be..a42f59c8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,6 +14,7 @@ services: - ldap expose: - "80" + restart: always ldap: image: osixia/openldap:1.1.7 diff --git a/nginx_conf/index.html b/nginx_conf/index.html index 7d78cff2..93958082 100644 --- a/nginx_conf/index.html +++ b/nginx_conf/index.html @@ -3,7 +3,7 @@ Home page - You need to log in to access the secret!

- You can also log off by visiting the following link. + You need to log in to access the secret!

+ You can also log off by visiting the following link. diff --git a/nginx_conf/nginx.conf b/nginx_conf/nginx.conf index d5f3786f..b50139f1 100644 --- a/nginx_conf/nginx.conf +++ b/nginx_conf/nginx.conf @@ -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 {