[Moin-user] Wiki farm and FavIcon
kai at aplteam.com
kai at aplteam.com
Mon Mar 16 04:56:37 EDT 2009
Thanks Bradey and Marcel for your advice - nevertheless is was
difficult to get it work.
For the records:
1. For some reason some browsers (yes, IE is among them) cache the
favicon even when all temp Internet files are deleted and the browser
is restarted. I couldn't believe it, but when accessing a site from a
different PC, the browser behaved as expected.
Of course that makes it much more difficult, because you can never be
quite sure that what you see is "reality".
as my favicon were "wiki" is defined in the apache config as the
underlaying dir doesn't work for me. It works for any other file,
including the logo, so the general mechanism is fine but it just won't
work with my favcion.
3. What worked was:
I don't understand this, but it works...
Yes, aplwiki.ico IS situated in apaches htdocs directory.
On Wed, Mar 11, 2009 at 8:06 PM, Bradey Honsinger <bradeyh at gmail.com> wrote:
> On Wed, Mar 11, 2009 at 11:03 AM, Bradey Honsinger <bradeyh at gmail.com> wrote:
>> On Wed, Mar 11, 2009 at 9:56 AM, kai at aplteam.com <kai at aplteam.com> wrote:
>>> Is there a way to make every wiki using it's own FavIcon?
>> Web browsers use http://<server>/favicon.ico unless instructed
>> otherwise, so unless your wikis use different domain names you can't
>> give them different favicons using Apache configuration. You can
>> specify the favicon inside the HTML using a <link> tag, though--I've
>> successfully done that on some wikis I manage. Set html_head inside
>> wikiconfig.py like this:
>> # favicon support (for both IE and FF)
>> html_head = u"""
>> <!-- for IE compatibility: -->
>> <link rel="shortcut icon"
>> href="/path/to/favicon.ico" />
>> <!-- for FF, newer browsers -->
>> <link rel="icon"
>> href="/path/to/favicon.png" />
>> Firefox and IE use slightly different tags, and FF can use a PNG while
>> IE needs a .ico file.
> FWIW, the same basic info is in HelpMiscellaneous:
> - Bradey
More information about the Moin-user