Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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;
    }


Is there no way to set that universally in nginx?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: