Skip to content

Instantly share code, notes, and snippets.

@hemju
Created July 31, 2011 20:01
Show Gist options
  • Save hemju/1117158 to your computer and use it in GitHub Desktop.
Save hemju/1117158 to your computer and use it in GitHub Desktop.
location = /robots.txt { access_log off; log_not_found off; }
location = /favicon.ico { access_log off; log_not_found off; }
location ~ /\. { access_log off; log_not_found off; deny all; }
location ~ ~$ { access_log off; log_not_found off; deny all; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment