diff --git a/core/nginx/conf/nginx.conf b/core/nginx/conf/nginx.conf index 0bc6cf07..3e605dd2 100644 --- a/core/nginx/conf/nginx.conf +++ b/core/nginx/conf/nginx.conf @@ -87,7 +87,7 @@ http { include /overrides/*.conf; # Actual logic - {% if WEBROOT_REDIRECT %} + {% if WEBROOT_REDIRECT and WEB_WEBMAIL != '/' %} location / { return 301 {{ WEBROOT_REDIRECT }}; }