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

Merge pull request #819 from drbyte/forge-matchup2-logs

Turn off logging of hits to robots.txt and favicon.ico
This commit is contained in:
Matt Stauffer
2019-09-10 16:20:56 -04:00
committed by GitHub
2 changed files with 9 additions and 0 deletions

View File

@@ -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";

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";