From 78b5e59cd53766ad8a64f03f5ef0ffb7bba5b7b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20Lo=CC=88sken?= Date: Mon, 17 Aug 2020 07:42:21 +0200 Subject: [PATCH] No log for favicon or robots, making this vhost the default --- config/nginx/in-vhost.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/nginx/in-vhost.conf b/config/nginx/in-vhost.conf index ad67147..22c4510 100644 --- a/config/nginx/in-vhost.conf +++ b/config/nginx/in-vhost.conf @@ -1,5 +1,5 @@ server { - listen 80; + listen 80 default_server; server_name in.localhost; root /var/www/app/public/; @@ -9,6 +9,9 @@ server { try_files $uri $uri/ /index.php?$query_string; } + location = /favicon.ico { access_log off; log_not_found off; } + location = /robots.txt { access_log off; log_not_found off; } + location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass app:9000;