nginx: return 404 when someone tries to access files or directories that start with a .
This commit is contained in:
parent
6c911f85db
commit
174b54c9f9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue