From 82a6fb610d72897f2ed2d6c407e1672e6fc65bd6 Mon Sep 17 00:00:00 2001 From: Frederik Ring Date: Sat, 14 Dec 2019 09:26:02 +0100 Subject: [PATCH] add server block for catching non-domain requests --- build/nginx.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build/nginx.conf b/build/nginx.conf index e1853c1..1e31189 100644 --- a/build/nginx.conf +++ b/build/nginx.conf @@ -23,6 +23,12 @@ http { "~^text/html" "default-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'"; } + server { + # 404 for any request that does match the server names defined below + listen 80; + return 404; + } + server { listen 80; autoindex on;