From 2de4995fec6a586acd0874135da62d6ca50deb71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20M=C3=B6hlmann?= Date: Fri, 7 Dec 2018 15:17:04 +0200 Subject: [PATCH] Don't redirect when webmail is served on '/' --- core/nginx/conf/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }}; }