Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

This document is in process of being migrated from my old wiki.

The Problem

Not having a favicon will clog up your log files with lines like these,

192.168.0.197 - - [27/Sep/2009:22:00:17 -0400] "GET /favicon.ico HTTP/1.1" 404 240 "-" "Mozilla/5.0...
192.168.0.197 - - [27/Sep/2009:22:00:20 -0400] "GET /favicon.ico HTTP/1.1" 404 240 "-" "Mozilla/5.0...
192.168.0.197 - - [28/Sep/2009:00:17:19 -0400] "GET /favicon.ico HTTP/1.1" 404 240 "-" "Mozilla/5.0...

If you do not know what is a favicon is, well here is a direct link to the Wikipedia on favicon.

Configure a Default favicon.ico

In some cases your website does not require a logo and you just want the error's to stop showing up.

0 Byte favicon.ico

In this case you can download my 0 byte favicon.ico or you can create your own the touch command,

sudo cp ~/favicon.ico /var/www/

At this point you should stop seeing the 404 error entries in both your main host and your virtual host, but the favicon will not show up on the browsers yet.

  • No labels