From d269621e98d2033677c8c8abe3050c86ec88682c Mon Sep 17 00:00:00 2001 From: Chris Brown Date: Mon, 9 Sep 2019 17:29:48 -0400 Subject: [PATCH] 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. --- cli/stubs/secure.valet.conf | 6 ++++++ cli/stubs/valet.conf | 3 +++ 2 files changed, 9 insertions(+) diff --git a/cli/stubs/secure.valet.conf b/cli/stubs/secure.valet.conf index ce1d5ce..42d1167 100644 --- a/cli/stubs/secure.valet.conf +++ b/cli/stubs/secure.valet.conf @@ -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"; diff --git a/cli/stubs/valet.conf b/cli/stubs/valet.conf index fc8201e..6c3bc0c 100644 --- a/cli/stubs/valet.conf +++ b/cli/stubs/valet.conf @@ -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";