From 425cdd5e7794061e09c9cd31d6cd275d6ca5ba24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20M=C3=B6hlmann?= Date: Fri, 7 Dec 2018 16:29:41 +0200 Subject: [PATCH] Fix syntax errors --- core/nginx/conf/nginx.conf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/nginx/conf/nginx.conf b/core/nginx/conf/nginx.conf index a169cd75..b016b9ca 100644 --- a/core/nginx/conf/nginx.conf +++ b/core/nginx/conf/nginx.conf @@ -87,12 +87,13 @@ http { include /overrides/*.conf; # Actual logic - {% if WEBROOT_REDIRECT and WEB_WEBMAIL != '/' %} + location / { + {% if WEBROOT_REDIRECT and WEB_WEBMAIL != '/' %} return 301 {{ WEBROOT_REDIRECT }}; - } {% else %} - return 404 + return 404; + } {% endif %} {% if WEBMAIL != 'none' %}