nginx: return 404 when someone tries to access files or directories that start with a .

This commit is contained in:
Andrea Dell'Amico 2017-11-15 01:05:07 +01:00
parent 6c911f85db
commit 174b54c9f9
1 changed files with 2 additions and 0 deletions

View File

@ -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