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:
@@ -25,6 +25,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";
|
||||
|
||||
@@ -60,6 +63,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";
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user