[Moin-user] Wiki farm and FavIcon
Bradey Honsinger
bradeyh at gmail.com
Wed Mar 11 14:03:29 EDT 2009
On Wed, Mar 11, 2009 at 9:56 AM, kai at aplteam.com <kai at aplteam.com> wrote:
> I've just converted from a single wiki to a wiki farm.
>
> Almost everything works fine but the FavIcon: It's grabbed from the
> shared htdocs directory, meaning that all my wikis share the same
> FavIcon.
>
> 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"
type="image/x-icon"
href="/path/to/favicon.ico" />
<!-- for FF, newer browsers -->
<link rel="icon"
type="image/jpeg"
href="/path/to/favicon.png" />
"""
Firefox and IE use slightly different tags, and FF can use a PNG while
IE needs a .ico file.
- Bradey
More information about the Moin-user
mailing list