No log for favicon or robots, making this vhost the default

This commit is contained in:
Holger Lösken
2020-08-17 07:42:21 +02:00
parent f4cade9fac
commit 78b5e59cd5

View File

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