<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Serving favicon in an Django App using Apache</title>
	<atom:link href="http://www.pkshiu.com/loft/archive/2008/08/serving-favicon-in-an-django-app-using-apache/feed" rel="self" type="application/rss+xml" />
	<link>http://www.pkshiu.com/loft/archive/2008/08/serving-favicon-in-an-django-app-using-apache</link>
	<description>Thoughts without walls</description>
	<lastBuildDate>Mon, 23 Jan 2012 16:49:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
	<item>
		<title>By: Matt</title>
		<link>http://www.pkshiu.com/loft/archive/2008/08/serving-favicon-in-an-django-app-using-apache/comment-page-1#comment-2661</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Tue, 18 Jan 2011 00:34:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.pkshiu.com/loft/archive/2008/08/serving-favicon-in-an-django-app-using-apache#comment-2661</guid>
		<description>For nginx you can use:
If you&#039;re using nginx, you can add the line:
location = /favicon.ico {
            rewrite (.*) /media/favicon.ico;
}
in your .conf</description>
		<content:encoded><![CDATA[<p>For nginx you can use:<br />
If you&#8217;re using nginx, you can add the line:<br />
location = /favicon.ico {<br />
            rewrite (.*) /media/favicon.ico;<br />
}<br />
in your .conf</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KarlP</title>
		<link>http://www.pkshiu.com/loft/archive/2008/08/serving-favicon-in-an-django-app-using-apache/comment-page-1#comment-587</link>
		<dc:creator>KarlP</dc:creator>
		<pubDate>Fri, 12 Jun 2009 10:41:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.pkshiu.com/loft/archive/2008/08/serving-favicon-in-an-django-app-using-apache#comment-587</guid>
		<description>Another option, one that doesn&#039;t require knowing the full path to this particular instance of django is to use another location directive.

So I have first, a location directive for &quot;/&quot; that sets the handler to django

Then one for &quot;/favicon.ico&quot; that sets the handler to none, and finally one for &quot;/media&quot; which also sets the handler to none

This follows the same style as the &quot;serving media files&quot; section of http://docs.djangoproject.com/en/dev/howto/deployment/modpython/#id1</description>
		<content:encoded><![CDATA[<p>Another option, one that doesn&#8217;t require knowing the full path to this particular instance of django is to use another location directive.</p>
<p>So I have first, a location directive for &#8220;/&#8221; that sets the handler to django</p>
<p>Then one for &#8220;/favicon.ico&#8221; that sets the handler to none, and finally one for &#8220;/media&#8221; which also sets the handler to none</p>
<p>This follows the same style as the &#8220;serving media files&#8221; section of <a href="http://docs.djangoproject.com/en/dev/howto/deployment/modpython/#id1" rel="nofollow">http://docs.djangoproject.com/en/dev/howto/deployment/modpython/#id1</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pk</title>
		<link>http://www.pkshiu.com/loft/archive/2008/08/serving-favicon-in-an-django-app-using-apache/comment-page-1#comment-537</link>
		<dc:creator>pk</dc:creator>
		<pubDate>Sun, 22 Mar 2009 23:10:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.pkshiu.com/loft/archive/2008/08/serving-favicon-in-an-django-app-using-apache#comment-537</guid>
		<description>The idea here is to by pass Django and just make the apache web server serves up the fav icon. Otherwise the other&#039;s suggestions work also, but more work for Django.

Andre -- the favicon tag is still needed in the HTML. This is just to deal with what happens when the browser ask for the fav icon file.</description>
		<content:encoded><![CDATA[<p>The idea here is to by pass Django and just make the apache web server serves up the fav icon. Otherwise the other&#8217;s suggestions work also, but more work for Django.</p>
<p>Andre &#8212; the favicon tag is still needed in the HTML. This is just to deal with what happens when the browser ask for the fav icon file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andre</title>
		<link>http://www.pkshiu.com/loft/archive/2008/08/serving-favicon-in-an-django-app-using-apache/comment-page-1#comment-536</link>
		<dc:creator>Andre</dc:creator>
		<pubDate>Sun, 22 Mar 2009 17:27:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.pkshiu.com/loft/archive/2008/08/serving-favicon-in-an-django-app-using-apache#comment-536</guid>
		<description>Is it not easier to add the favicon via a  tag in the html?



I&#039;m currently doing this in my websites, and since no-one mentions it, I&#039;m afraid its a bad use?</description>
		<content:encoded><![CDATA[<p>Is it not easier to add the favicon via a  tag in the html?</p>
<p>I&#8217;m currently doing this in my websites, and since no-one mentions it, I&#8217;m afraid its a bad use?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle</title>
		<link>http://www.pkshiu.com/loft/archive/2008/08/serving-favicon-in-an-django-app-using-apache/comment-page-1#comment-516</link>
		<dc:creator>Kyle</dc:creator>
		<pubDate>Wed, 07 Jan 2009 03:54:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.pkshiu.com/loft/archive/2008/08/serving-favicon-in-an-django-app-using-apache#comment-516</guid>
		<description>hey. even easier:

if you have django.redirects installed, just write a new redirect!</description>
		<content:encoded><![CDATA[<p>hey. even easier:</p>
<p>if you have django.redirects installed, just write a new redirect!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: and3k</title>
		<link>http://www.pkshiu.com/loft/archive/2008/08/serving-favicon-in-an-django-app-using-apache/comment-page-1#comment-514</link>
		<dc:creator>and3k</dc:creator>
		<pubDate>Thu, 01 Jan 2009 16:14:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.pkshiu.com/loft/archive/2008/08/serving-favicon-in-an-django-app-using-apache#comment-514</guid>
		<description>I&#039;m using FastCGI for all my django sites and there&#039;s an even simpler solution: Adding the following does the trick:

RewriteRule ^/favicon.ico$ /media/favicon.png [QSA,L,PT]</description>
		<content:encoded><![CDATA[<p>I&#8217;m using FastCGI for all my django sites and there&#8217;s an even simpler solution: Adding the following does the trick:</p>
<p>RewriteRule ^/favicon.ico$ /media/favicon.png [QSA,L,PT]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://www.pkshiu.com/loft/archive/2008/08/serving-favicon-in-an-django-app-using-apache/comment-page-1#comment-457</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Mon, 03 Nov 2008 03:55:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.pkshiu.com/loft/archive/2008/08/serving-favicon-in-an-django-app-using-apache#comment-457</guid>
		<description>Hey there. I tried to do this following your instructions, but it&#039;s not working for me. I put the appropriate lines in httpd.conf and restarted apache. 

Do I have to do something else besides update httpd.conf? You can email me back if you are inclined at andrewljohnson [at] gmail.com</description>
		<content:encoded><![CDATA[<p>Hey there. I tried to do this following your instructions, but it&#8217;s not working for me. I put the appropriate lines in httpd.conf and restarted apache. </p>
<p>Do I have to do something else besides update httpd.conf? You can email me back if you are inclined at andrewljohnson [at] gmail.com</p>
]]></content:encoded>
	</item>
</channel>
</rss>

