diff --git a/docker/nginx/etc/nginx/conf.d/default.conf b/docker/nginx/etc/nginx/conf.d/default.conf index 613b0c3..e10174a 100644 --- a/docker/nginx/etc/nginx/conf.d/default.conf +++ b/docker/nginx/etc/nginx/conf.d/default.conf @@ -2,14 +2,21 @@ server { listen 80 default_server; listen [::]:80 default_server; - location / { - root /var/www/html; - index index.html; - try_files $uri $uri.html $uri/ /index.html; - } + root /var/www/html; + index index.html; location = /favicon.ico { - root /var/www/html; + access_log off; + log_not_found off; + } + + location = /robots.txt { + access_log off; + log_not_found off; + } + + location / { + try_files $uri $uri.html $uri/ /index.html; } # redirect server error pages to a static page