From b0007adb3fa1efd6650b9fe5754805bf5cd844b3 Mon Sep 17 00:00:00 2001 From: ljf Date: Wed, 14 Mar 2018 01:45:08 +0100 Subject: [PATCH] [fix] Root installation --- conf/nginx.conf.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf/nginx.conf.j2 b/conf/nginx.conf.j2 index 608d752..48d4af7 100644 --- a/conf/nginx.conf.j2 +++ b/conf/nginx.conf.j2 @@ -1,5 +1,7 @@ {% if path_url != "/" %} rewrite ^{{ path_url }}$ {{ path_url }}/ permanent; +{% else %} +{% set path_url = "" %} {% endif %} location {{ path_url }}/ { alias {{ final_path }}/;