login community faq

Is there a way to configure apache to direct a request for /favicon.ico to the url where I keep static content (/static/favicon.ico)?

asked Mar 26 '12 at 08:35

Marcin's gravatar image

Marcin
314


If you're talking about a WebFaction Django install, you should be able to edit the .conf file in the apache2 directory in your app's directory, and add a Redirect /favicon.ico http://example.com/static/favicon.ico

However, note that you can also specify a favicon in the HTML.

1
<link rel="shortcut icon" href="http://example.com/myicon.ico" />

So you can change both the name and the location. (I took that example from the Wikipedia entry on favicons.)

answered Mar 26 '12 at 21:16

Hoboes's gravatar image

Hoboes
283

edited Mar 26 '12 at 21:18

Thanks for this. I've found the browsers will look for favicon.ico anyway.

(Mar 28 '12 at 07:57) Marcin Marcin's gravatar image

This related question: http://community.webfaction.com/questions/774/create-an-icon-for-a-django-app

lists many ways to do this.

answered Mar 26 '12 at 21:34

neeravk's gravatar image

neeravk ♦♦
14061311

Thank you for this!

(Mar 28 '12 at 07:57) Marcin Marcin's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited