From 20f1faf6d03ee285ef21bf8e089815474a11f85c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20M=C3=B6hlmann?= Date: Fri, 7 Dec 2018 16:10:52 +0200 Subject: [PATCH] Send 404 when nothing server at '/' Prevents Nginx welcome screen --- core/nginx/conf/nginx.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/nginx/conf/nginx.conf b/core/nginx/conf/nginx.conf index 3e605dd2..a169cd75 100644 --- a/core/nginx/conf/nginx.conf +++ b/core/nginx/conf/nginx.conf @@ -91,6 +91,8 @@ http { location / { return 301 {{ WEBROOT_REDIRECT }}; } + {% else %} + return 404 {% endif %} {% if WEBMAIL != 'none' %}