Use relative redirects, as suggsted in #272
This commit is contained in:
@@ -17,6 +17,7 @@ http {
|
|||||||
sendfile on;
|
sendfile on;
|
||||||
keepalive_timeout 65;
|
keepalive_timeout 65;
|
||||||
server_tokens off;
|
server_tokens off;
|
||||||
|
absolute_redirect off;
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
@@ -58,7 +59,7 @@ http {
|
|||||||
|
|
||||||
{% if ADMIN == 'true' %}
|
{% if ADMIN == 'true' %}
|
||||||
location {{ WEB_ADMIN }} {
|
location {{ WEB_ADMIN }} {
|
||||||
return 301 $scheme://$host{{ WEB_ADMIN }}/ui;
|
return 301 {{ WEB_ADMIN }}/ui;
|
||||||
}
|
}
|
||||||
location ~ {{ WEB_ADMIN }}/(ui|static) {
|
location ~ {{ WEB_ADMIN }}/(ui|static) {
|
||||||
rewrite ^{{ WEB_ADMIN }}/(.*) /$1 break;
|
rewrite ^{{ WEB_ADMIN }}/(.*) /$1 break;
|
||||||
|
|||||||
Reference in New Issue
Block a user