diff --git a/config/nginx.sample.conf b/config/nginx.sample.conf index 86e05d98e..8738e87d2 100644 --- a/config/nginx.sample.conf +++ b/config/nginx.sample.conf @@ -80,11 +80,11 @@ server { internal; } - # return a cheap 404 for favicon cause lots of browsers like asking for it - # view source and old browsers, this bypasses the rails stack at the expense of - # having an ugly 404 page + # bypass rails stack with a cheap 204 for favicon.ico requests location /favicon.ico { - return 404; + return 204; + access_log off; + log_not_found off; } location / {