diff --git a/nginx/templates/nginx-virthost.j2 b/nginx/templates/nginx-virthost.j2 index a2f895c..709a414 100644 --- a/nginx/templates/nginx-virthost.j2 +++ b/nginx/templates/nginx-virthost.j2 @@ -5,6 +5,7 @@ server { deny all; access_log off; log_not_found off; + return 404; } {% if letsencrypt_acme_install %} ## Disable .htaccess and other hidden files @@ -46,6 +47,7 @@ server { deny all; access_log off; log_not_found off; + return 404; } {% if haproxy_ips is defined %} # We are behind haproxy