What is a favicon.ico file and why should I have one?
Author: Deron Eriksson
Description: This tutorial describes what a favicon.ico file is and why you should have one in your Apache document root.
Tutorial created using: Windows XP || Apache HTTP Server 2.2.4

Page: < 1 2

(Continued from page 1)

I should mention that the ApacheSW access.log and error.log files are located in the Apache logs directory, as shown below.

Apache logs directory

If we inspect the error.log file, we can see that it contains an entry for the failed request for favicon.ico.

error.log entry:

[Sun May 20 20:55:30 2007] [error] [client] File does not exist: C:/Apache2.2.4/htdocs/favicon.ico

If you have a web site with a low volume of browser requests, this is not a big deal, but if you have a web site that gets thousands of requests per hour (or even per day), you can end up filling your Apache error log with lots of useless error messages. The plethora of favicon.ico error messages can obscure potentially more serious errors that need attention.

So, it's good practice to use a favicon.ico file. It can add a little flair to your web site and help keep your Apache error log clean.

Page: < 1 2