WebFaction
Community site: login 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 26 Mar '12, 08:35

Marcin
3136
accept rate: 0%


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.

<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.)

permanent link

answered 26 Mar '12, 21:16

Hoboes
2826
accept rate: 25%

edited 26 Mar '12, 21:18

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

(28 Mar '12, 07:57) Marcin

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

lists many ways to do this.

permanent link

answered 26 Mar '12, 21:34

neeravk
1.5k3412
accept rate: 41%

Thank you for this!

(28 Mar '12, 07:57) Marcin
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×225
×27
×6
×3

question asked: 26 Mar '12, 08:35

question was seen: 15,271 times

last updated: 28 Mar '12, 07:57

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM