1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-07 09:10:03 +01:00

Turn off logging of hits to robots.txt and favicon.ico

A long-requested adjustment to Valet is to bypass the logging of robots.txt and favicon.ico hits. Particularly when keeping an Ngrok session alive.

This update is consistent with default logging settings in Forge.
This commit is contained in:
Chris Brown
2019-09-09 17:29:48 -04:00
parent 52a168eb96
commit d269621e98
2 changed files with 9 additions and 0 deletions

View File

@@ -14,6 +14,9 @@ server {
rewrite ^ "VALET_SERVER_PATH" last;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
access_log off;
error_log "VALET_HOME_PATH/Log/nginx-error.log";