Skip to content
Snippets Groups Projects
Commit 0a27ca53 authored by egon w. stemle's avatar egon w. stemle :robot:
Browse files

Set access_log to off but do log_not_found for robots.txt

parent e7d6a89d
No related branches found
No related tags found
No related merge requests found
......@@ -146,7 +146,7 @@ server {
}
# remove the robots and favicon from the logs
# location ~ /robots.txt$ { access_log off; log_not_found off; }
location ~ /robots.txt$ { access_log off; }
location ~ ^/favicon.ico$ { access_log off; log_not_found off; }
# this prevents hidden files (beginning with a period) from being served
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment