2
0
mirror of https://github.com/offen/website.git synced 2024-11-22 09:00:28 +01:00

Merge pull request #23 from offen/server-name-only

Add server block for catching non-domain requests
This commit is contained in:
Frederik Ring 2019-12-14 09:26:36 +01:00 committed by GitHub
commit f0ac407daf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,12 @@ http {
"~^text/html" "default-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'"; "~^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 { server {
listen 80; listen 80;
autoindex on; autoindex on;