i know there is a patch to allow admin's to set the favicon from within drupal. however, i have several sites all running off the same code base and don't want to apply the patch unless there isn't another way to get each site to use a unique favicon. it would require having to set up a test site which i would like to avoid at the moment.

i assume the patch just uploads the icon file to the appropriate place and the rest is handled by the browser. where is that place? i tried putting the icon in the /sites/mysite.com/ directory and set the permissions but i still see the default icon. i tried loading the page on a browser that had never been to the site before in case there were cacheing problems. any ideas what i might be doing wrong or how to get around this?

Comments

Steven’s picture

Favicons need to be indicated with a <link rel="shortcut icon" /> tag. You could do this in the theme.

--
If you have a problem, please search before posting a question.

ron collins’s picture

thanks. i probably should have known but was blocked on it for some reason.

Valerio3’s picture

Normally the favicon.ico file must be stored on the document root of the web server, for example in my case it is /var/drupal (and not /var/drupal/sites/www.digiampietro.com). I also have more than one site stored on the same location, for this reason to use different favicon.ico for different sites I used the Alias configuration in Apache in a way similar to the following:

<VirtualHost *>
    ServerName www.digiampietro.com
    DocumentRoot /var/drupal
    Alias /favicon.ico /var/drupal/digiampietro-favicon.ico
    ....
</VirtualHost>

In this way I can share exactly the same theme for my websites, but have different favicon.ico for each one. I also used the same approach for the watermark.png image that I use in my theme.

This approach has the disadvantage that you must change the Apache configuration, but the adavantage that you can have different favicons for different sites also when using same theme.

Valerio Di Giampietro

azote’s picture

sweet! this works! thanks!