How to fix the useless 'favicon.ico page not found' log message? Why is Drupal looking for it in the root dir in first place? The favicon is always placed inside theme at sites/all/themes/mytheme/, but it's looking for favicon.ico inside home / dir.

When browsing website it spams the log error message in the Recent log messages page.
It's not really a Drupal bug, but a browser bug (I think Firefox might be a culprit)

The best way I found to fix it is to put:

&lt;Location /favicon.ico&gt;
  ErrorDocument 404 "No favicon"
&lt;/Location&gt;


This code should work in your vhost file or should also work in the .htaccess file, see http://httpd.apache.org/docs/2.4/sections.html for more details