Skip to content

Instantly share code, notes, and snippets.

@glagola
Created June 16, 2013 18:36
Show Gist options
  • Save glagola/5792953 to your computer and use it in GitHub Desktop.
Save glagola/5792953 to your computer and use it in GitHub Desktop.
index index.html index.htm index.php .dirindex.php;
try_files $uri $uri/ =404;
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
log_not_found off;
access_log off;
}
location ~ /(README|ChangeLog|\.)$ {
log_not_found off;
access_log off;
deny all;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment