4 ms·
Best thing for nginx is do an include in each server {} block. # /etc/nginx/deny-dot-files.conf location ~ /\. { access_log off; log_not_
by nodesocket 11y ago
Best thing for nginx is do an include in each server {} block.
# /etc/nginx/deny-dot-files.conf
location ~ /\. {
access_log off;
log_not_found off;
deny all;
}
server {
include /etc/nginx/deny-dot-files.conf;
}
- hoodoof 11y agoIs there no way to set that universally in nginx?