- Code: Select all
[Sun Feb 20 23:47:37 2005] [error] [client 127.0.0.1] File does not exist: C:/Web Sites/test1/favicon.ico
Using a slightly modified version of the code suggested, I've added this to a VirtualHost entry to test:
- Code: Select all
<VirtualHost *>
ServerName test1
DocumentRoot "C:\Web sites\test1"
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule .*favicon\.ico\??.*$ "C:\Web Sites\favicon.ico" [L]
</VirtualHost>
where "C:\Web Sites\favicon.ico" is the location of the default favicon.ico file.When I restart Apache and request a page from site "test1", these lines appear in access.log:
- Code: Select all
127.0.0.1 - - [21/Feb/2005:00:12:47 +0000] "GET / HTTP/1.1" 200 11
127.0.0.1 - - [21/Feb/2005:00:12:48 +0000] "GET /favicon.ico HTTP/1.1" 400 298
127.0.0.1 - - [21/Feb/2005:00:12:48 +0000] "GET /favicon.ico HTTP/1.1" 400 298
and the default favicon.ico file isn't shown in the browser address bar. This page http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html suggests 400 is A Bad Thing. And there are two of them for every request... ?
I've played around with variations on the syntax, but can't hit on the right one. Can anyone suggest where I might be going wrong? Thanks!