nginx/files/conf.d/custom/hidden_files.conf
2024-12-17 17:20:50 +01:00

7 lines
163 B
Plaintext

# Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).
location ~ /\. {
deny all;
access_log off;
log_not_found off;
}