Nginx configuration for hiding directories with underscore

2011-10-20

Nginx configuration for making sure no directories or files starting with an underscore (_) in root can be downloaded from the web server: location ~ ^/_ { return 404; }

Leave a Reply

Twitter: @mikeplate