From effb311742aad2b1b3fe6a1e970c0c3ba16b79c1 Mon Sep 17 00:00:00 2001 From: kaiyou Date: Sun, 24 Sep 2017 22:43:16 +0200 Subject: [PATCH] Use relative redirects, as suggsted in #272 --- nginx/conf/nginx.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nginx/conf/nginx.conf b/nginx/conf/nginx.conf index 23f81563..446c039f 100644 --- a/nginx/conf/nginx.conf +++ b/nginx/conf/nginx.conf @@ -17,6 +17,7 @@ http { sendfile on; keepalive_timeout 65; server_tokens off; + absolute_redirect off; server { listen 80; @@ -58,7 +59,7 @@ http { {% if ADMIN == 'true' %} location {{ WEB_ADMIN }} { - return 301 $scheme://$host{{ WEB_ADMIN }}/ui; + return 301 {{ WEB_ADMIN }}/ui; } location ~ {{ WEB_ADMIN }}/(ui|static) { rewrite ^{{ WEB_ADMIN }}/(.*) /$1 break;