Skip to content

Instantly share code, notes, and snippets.

@AysadKozanoglu
Forked from kfl62/do_not_log.conf
Created April 29, 2016 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AysadKozanoglu/8627a6f556fe89500228087d52e3a422 to your computer and use it in GitHub Desktop.
Save AysadKozanoglu/8627a6f556fe89500228087d52e3a422 to your computer and use it in GitHub Desktop.
nginx configuration file, (do not log robots.txt and favicon.ico requests)
# Designed to be included in any server {} block.
location = /favicon.ico {
log_not_found off;
access_log off;
}
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment