favicon.ico Fehler in den Apache Logs entfernen

Die meisten Einträge bei mir im Apache-Log sehen folgendermaßen aus:

CODE:
  1. [Sun Oct 01 14:49:08 2006] [error] [client 85.216.XX.XX] File does not exist: /var/www/XXXX/html/Webspell/favicon.ico

Lässt sich einfach beheben, indem man die httpd.conf oder apache2.conf editiert und folgendes hinzufügt:

CODE:
  1. # Send an 404, if favicon.ico is not available
  2. Redirect 404 /favicon.ico
  3.  
  4. # Don't bother sending the custom error page for favicon.ico
  5. <location /favicon.ico>
  6.    ErrorDocument 404 "No favicon.ico available"
  7. </location>

Ähnlich kann man vermutlich auch den robots.txt Fehler entfernen.

5 Antworten zu “favicon.ico Fehler in den Apache Logs entfernen”


Eine Antwort hinterlassen

XHTML: Du kannst folgende Elemente benutzen <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> :