image image Home   About   Downloads   Support   Links   Contact  
image

IntraWeb
» Feature Matrix
» What's new in IntraWeb
» Blog
» Downloads
» Test Releases
» IntraWeb for Free

Resources
» Atozed Purchase Point
» IntraWeb Demos
» Documentation
» Bundled Key Request
» FAQ
» Articles
» Books
» Support
» Archived Versions

What others say
» Case Studies
» Magazine Reviews
» User Quotes






Copyright
2002 - 2013
Atozed Computer
Software Ltd.

image
Buy Online   Download Support  FAQ
Atozed Home  »  IntraWeb  »  IntraWeb Blog

Apache and Favicon

6/8/2012

When deploying an IntraWeb ISAPI application with Apache you may see "File does not exist: C:/Apache2.2/htdocs/favicon.ico" errors in Apache error log.

This is NOT an IntraWeb issue but an Apache issue. This kind of issue may happen with some browsers (some versions of Chrome and Opera, mostly) but not all.

If you don't know what a Favicon is, read more about it here.

The request for the favicon never gets to the IntraWeb application, but handled internally by Apache server. If the icon doesn't exist in the DocumentRoot Apache folder (default \ServerRoot\htdocs), Apache will log the browser request for Favicon.ico as an error (in the \logs\error.log Apache log file). This kind of error never gets to the user but may fill your error.log file with useless error messages, and for sure is very annoying. If you google "apache favicon" you will see that this is a very common (and old) Apache issue.

Two solutions for Apache's Favicon error:

1) Create an 16x16 icon and put it in DocumentRoot Apache folder, naming it as favicon.ico. This icon file will be served by Apache as the favicon for every favicon request.

2) Disable favicon error log. This, in my opinion, is the best alternative, once the file will not be served by Apache and no error will be generated. To disable favicon error log, do this:

  • Open Apache's httpd.conf file
  • Scroll to the end of the file. Copy this text and paste there (exactly as shown):

# Don't bother looking for favicon.ico
Redirect 404 /favicon.ico

# Don't bother sending the custom error page for favicon.ico
<Location /favicon.ico>
 ErrorDocument 404 "No favicon"
</Location>

More information:


<< Previous Entry    Next Entry >>