diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 789c00d2..3354df48 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -104,6 +104,12 @@ http { set_by_lua_block $robots_file { return "/app/public/robots-" .. ngx.shared.upstream:get("env") .. ".txt" } + + location ~ ^(.*\?.*)/favicon\.ico$ { + rewrite ^(.*)/favicon\.ico$ $1 break; + proxy_pass http://app; + } + location / { include headers.conf; @@ -264,6 +270,7 @@ http { access_log off; return 200; } + } server { listen 80;