<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>FVN Tech Blog &#187; lighttpd</title>
	<atom:link href="http://blog.feuvan.net/tag/lighttpd/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.feuvan.net</link>
	<description>Interoperability &#124; Coding, Programming in C#/PHP &#124; Linux, Windows Server Backend &#124;  New Media &#124; SNS &#124; Misc ...</description>
	<lastBuildDate>Fri, 06 Aug 2010 00:31:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>mod_extforward for lighttpd 1.5 r2994</title>
		<link>http://blog.feuvan.net/2008/10/11/163-mod_extforward-for-lighttpd-15-r2994.html</link>
		<comments>http://blog.feuvan.net/2008/10/11/163-mod_extforward-for-lighttpd-15-r2994.html#comments</comments>
		<pubDate>Sat, 11 Oct 2008 10:19:47 +0000</pubDate>
		<dc:creator>feuvan</dc:creator>
				<category><![CDATA[Default]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[mod_extforward]]></category>

		<guid isPermaLink="false">http://blog.feuvan.net/2008/10/11/163-mod_extforward-for-lighttpd-15-r2994.html</guid>
		<description><![CDATA[Lighttpd team roll out a prerelease of 1.5 r2294, get it here(http://blog.lighttpd.net/articles/2008/08/20/new-prereleases-1-4-20-r2294-and-1-5-r2294). I modified mod_extforward to make it work with it (some constants changed since last prerelease). orz to the author of mod_extforward, great kxn. see att for patch. lighttpd-150-r2294-mod_extforward]]></description>
			<content:encoded><![CDATA[<p>Lighttpd team roll out a prerelease of 1.5 r2294, get it here(<a href="http://blog.lighttpd.net/articles/2008/08/20/new-prereleases-1-4-20-r2294-and-1-5-r2294">http://blog.lighttpd.net/articles/2008/08/20/new-prereleases-1-4-20-r2294-and-1-5-r2294</a>). I modified mod_extforward to make it work with it (some constants changed since last prerelease).</p>
<p>orz to the author of mod_extforward, great <a href="http://www.google.com/search?q=kxn">kxn</a>.</p>
<p>see att for patch.</p>
<p><a href="http://blog.feuvan.net/wp-content/uploads/2008/10/lighttpd-150-r2294-mod_extforward.patch">lighttpd-150-r2294-mod_extforward</a></p>
<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2Fblog.feuvan.net%2F2008%2F10%2F11%2F163-mod_extforward-for-lighttpd-15-r2994.html&amp;title=mod_extforward+for+lighttpd+1.5+r2994" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/digg.png" alt="Digg This" title="Digg This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.reddit.com/submit?url=http%3A%2F%2Fblog.feuvan.net%2F2008%2F10%2F11%2F163-mod_extforward-for-lighttpd-15-r2994.html&amp;title=mod_extforward+for+lighttpd+1.5+r2994" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/reddit.png" alt="Reddit This" title="Reddit This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.feuvan.net%2F2008%2F10%2F11%2F163-mod_extforward-for-lighttpd-15-r2994.html&amp;title=mod_extforward+for+lighttpd+1.5+r2994" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/stumbleupon.png" alt="Stumble Now!" title="Stumble Now!" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fblog.feuvan.net%2F2008%2F10%2F11%2F163-mod_extforward-for-lighttpd-15-r2994.html&amp;headline=mod_extforward+for+lighttpd+1.5+r2994" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/yahoo_buzz.png" alt="Buzz This" title="Buzz This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dzone.com/links/add.html?title=mod_extforward+for+lighttpd+1.5+r2994&amp;url=http%3A%2F%2Fblog.feuvan.net%2F2008%2F10%2F11%2F163-mod_extforward-for-lighttpd-15-r2994.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/dzone.png" alt="Vote on DZone" title="Vote on DZone" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.facebook.com/sharer.php?t=mod_extforward+for+lighttpd+1.5+r2994&amp;u=http%3A%2F%2Fblog.feuvan.net%2F2008%2F10%2F11%2F163-mod_extforward-for-lighttpd-15-r2994.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/facebook.png" alt="Share on Facebook" title="Share on Facebook" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://delicious.com/save?title=mod_extforward+for+lighttpd+1.5+r2994&amp;url=http%3A%2F%2Fblog.feuvan.net%2F2008%2F10%2F11%2F163-mod_extforward-for-lighttpd-15-r2994.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/delicious.png" alt="Bookmark this on Delicious" title="Bookmark this on Delicious" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dotnetkicks.com/kick/?title=mod_extforward+for+lighttpd+1.5+r2994&amp;url=http%3A%2F%2Fblog.feuvan.net%2F2008%2F10%2F11%2F163-mod_extforward-for-lighttpd-15-r2994.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/dotnetkicks.png" alt="Kick It on DotNetKicks.com" title="Kick It on DotNetKicks.com" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://dotnetshoutout.com/Submit?title=mod_extforward+for+lighttpd+1.5+r2994&amp;url=http%3A%2F%2Fblog.feuvan.net%2F2008%2F10%2F11%2F163-mod_extforward-for-lighttpd-15-r2994.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/dotnetshoutout.png" alt="Shout it" title="Shout it" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fblog.feuvan.net%2F2008%2F10%2F11%2F163-mod_extforward-for-lighttpd-15-r2994.html&amp;title=mod_extforward+for+lighttpd+1.5+r2994&amp;summary=&amp;source=" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/linkedin.png" alt="Share on LinkedIn" title="Share on LinkedIn" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.technorati.com/faves?add=http%3A%2F%2Fblog.feuvan.net%2F2008%2F10%2F11%2F163-mod_extforward-for-lighttpd-15-r2994.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/technorati.png" alt="Bookmark this on Technorati" title="Bookmark this on Technorati" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://twitter.com/home?status=Reading+http%3A%2F%2Fblog.feuvan.net%2F2008%2F10%2F11%2F163-mod_extforward-for-lighttpd-15-r2994.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/twitter.png" alt="Post on Twitter" title="Post on Twitter" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.google.com/buzz/post?url=http%3A%2F%2Fblog.feuvan.net%2F2008%2F10%2F11%2F163-mod_extforward-for-lighttpd-15-r2994.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://blog.feuvan.net/2008/10/11/163-mod_extforward-for-lighttpd-15-r2994.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>lighttpd 1.5.0 pr on Debian sid step by step</title>
		<link>http://blog.feuvan.net/2007/06/18/145-lighttpd-150-pr-on-debian-sid-step-by-step.html</link>
		<comments>http://blog.feuvan.net/2007/06/18/145-lighttpd-150-pr-on-debian-sid-step-by-step.html#comments</comments>
		<pubDate>Sun, 17 Jun 2007 18:17:12 +0000</pubDate>
		<dc:creator>feuvan</dc:creator>
				<category><![CDATA[Default]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[mod_extforward]]></category>

		<guid isPermaLink="false">http://blog.feuvan.net/index.php/2007/06/18/lighttpd-150-pr-on-debian-sid-step-by-step.html</guid>
		<description><![CDATA[Download: http://www.lighttpd.net/download/lighttpd-1.5.0-r1857.tar.gz Prerequisites: sudo aptitude install libglib2.0-dev libpcre3-dev zlib1g-dev libaio-dev libbz2-dev automake1.9 Configure: ./configure –prefix={yourprefix} Build: make clean install Run: {yourprefix}/sbin/lighttpd –f {yourprefix}/etc/lighttpd.conf More: I modified mod_extforward to make it compatible with 1.5.0 pre-release Patch: cd your-path-to-source/lighttpd-1.5.0/ patch -p1 &#60; &#8230; <a href="http://blog.feuvan.net/2007/06/18/145-lighttpd-150-pr-on-debian-sid-step-by-step.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Download:
</p>
<p> <a href="http://www.lighttpd.net/download/lighttpd-1.5.0-r1857.tar.gz">http://www.lighttpd.net/download/lighttpd-1.5.0-r1857.tar.gz</a>
</p>
<p>Prerequisites:
</p>
<p><code> sudo aptitude install libglib2.0-dev libpcre3-dev zlib1g-dev libaio-dev libbz2-dev automake1.9<br />
</code>
<p>Configure:
</p>
<p><code>  ./configure –prefix={yourprefix}<br />
</code>
<p>Build:
</p>
<p><code> make clean install<br />
</code>
<p>Run:
</p>
<p><code> {yourprefix}/sbin/lighttpd –f {yourprefix}/etc/lighttpd.conf<br />
</code>
</p>
<p>More:
</p>
<p> I modified mod_extforward to make it compatible with 1.5.0 pre-release
</p>
<p>Patch:
</p>
<p><code> cd your-path-to-source/lighttpd-1.5.0/<br />
patch -p1 &lt; lighttpd-1.5.0-pr-mod_extforward.patch<br />
autoreconf</code></p>
<p>patch:<br />
<a href='http://blog.feuvan.net/wp-content/uploads/2007/07/lighttpd-150-pr-mod_extforward.tar' title='lighttpd-1.5.0-pr-mod_extforward.patch'>lighttpd-1.5.0-pr-mod_extforward.patch</a></p>
<p>Trac on lighttpd<br />
<code></p>
<pre>
$HTTP["host"] =~ "^trac\.lighttpd\.net" {
    # alias, ...

    $HTTP["url"] =~ "^/trac/" {
        proxy-core.backends = ( "127.0.0.1:9090" )
        proxy-core.protocol = "fastcgi"
        proxy-core.rewrite-request = (
           "_pathinfo" => ( "^/trac(/.*)" => "$1" ),
           "_scriptname" => ( "^(/trac/)" => "$1" )
        )
    }
}
</pre>
<p></code></p>
<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2Fblog.feuvan.net%2F2007%2F06%2F18%2F145-lighttpd-150-pr-on-debian-sid-step-by-step.html&amp;title=lighttpd+1.5.0+pr+on+Debian+sid+step+by+step" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/digg.png" alt="Digg This" title="Digg This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.reddit.com/submit?url=http%3A%2F%2Fblog.feuvan.net%2F2007%2F06%2F18%2F145-lighttpd-150-pr-on-debian-sid-step-by-step.html&amp;title=lighttpd+1.5.0+pr+on+Debian+sid+step+by+step" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/reddit.png" alt="Reddit This" title="Reddit This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.feuvan.net%2F2007%2F06%2F18%2F145-lighttpd-150-pr-on-debian-sid-step-by-step.html&amp;title=lighttpd+1.5.0+pr+on+Debian+sid+step+by+step" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/stumbleupon.png" alt="Stumble Now!" title="Stumble Now!" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fblog.feuvan.net%2F2007%2F06%2F18%2F145-lighttpd-150-pr-on-debian-sid-step-by-step.html&amp;headline=lighttpd+1.5.0+pr+on+Debian+sid+step+by+step" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/yahoo_buzz.png" alt="Buzz This" title="Buzz This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dzone.com/links/add.html?title=lighttpd+1.5.0+pr+on+Debian+sid+step+by+step&amp;url=http%3A%2F%2Fblog.feuvan.net%2F2007%2F06%2F18%2F145-lighttpd-150-pr-on-debian-sid-step-by-step.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/dzone.png" alt="Vote on DZone" title="Vote on DZone" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.facebook.com/sharer.php?t=lighttpd+1.5.0+pr+on+Debian+sid+step+by+step&amp;u=http%3A%2F%2Fblog.feuvan.net%2F2007%2F06%2F18%2F145-lighttpd-150-pr-on-debian-sid-step-by-step.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/facebook.png" alt="Share on Facebook" title="Share on Facebook" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://delicious.com/save?title=lighttpd+1.5.0+pr+on+Debian+sid+step+by+step&amp;url=http%3A%2F%2Fblog.feuvan.net%2F2007%2F06%2F18%2F145-lighttpd-150-pr-on-debian-sid-step-by-step.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/delicious.png" alt="Bookmark this on Delicious" title="Bookmark this on Delicious" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dotnetkicks.com/kick/?title=lighttpd+1.5.0+pr+on+Debian+sid+step+by+step&amp;url=http%3A%2F%2Fblog.feuvan.net%2F2007%2F06%2F18%2F145-lighttpd-150-pr-on-debian-sid-step-by-step.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/dotnetkicks.png" alt="Kick It on DotNetKicks.com" title="Kick It on DotNetKicks.com" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://dotnetshoutout.com/Submit?title=lighttpd+1.5.0+pr+on+Debian+sid+step+by+step&amp;url=http%3A%2F%2Fblog.feuvan.net%2F2007%2F06%2F18%2F145-lighttpd-150-pr-on-debian-sid-step-by-step.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/dotnetshoutout.png" alt="Shout it" title="Shout it" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fblog.feuvan.net%2F2007%2F06%2F18%2F145-lighttpd-150-pr-on-debian-sid-step-by-step.html&amp;title=lighttpd+1.5.0+pr+on+Debian+sid+step+by+step&amp;summary=&amp;source=" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/linkedin.png" alt="Share on LinkedIn" title="Share on LinkedIn" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.technorati.com/faves?add=http%3A%2F%2Fblog.feuvan.net%2F2007%2F06%2F18%2F145-lighttpd-150-pr-on-debian-sid-step-by-step.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/technorati.png" alt="Bookmark this on Technorati" title="Bookmark this on Technorati" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://twitter.com/home?status=Reading+http%3A%2F%2Fblog.feuvan.net%2F2007%2F06%2F18%2F145-lighttpd-150-pr-on-debian-sid-step-by-step.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/twitter.png" alt="Post on Twitter" title="Post on Twitter" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.google.com/buzz/post?url=http%3A%2F%2Fblog.feuvan.net%2F2007%2F06%2F18%2F145-lighttpd-150-pr-on-debian-sid-step-by-step.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://blog.feuvan.net/2007/06/18/145-lighttpd-150-pr-on-debian-sid-step-by-step.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lighttpd url-redirect for WordPress Permlink changes</title>
		<link>http://blog.feuvan.net/2007/04/20/134-lighttpd-url-redirect-for-wordpress-permlink-changes.html</link>
		<comments>http://blog.feuvan.net/2007/04/20/134-lighttpd-url-redirect-for-wordpress-permlink-changes.html#comments</comments>
		<pubDate>Thu, 19 Apr 2007 18:10:10 +0000</pubDate>
		<dc:creator>feuvan</dc:creator>
				<category><![CDATA[Default]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.feuvan.net/index.php/2007/04/20/lighttpd-url-redirect-for-wordpress-permlink-changes.html</guid>
		<description><![CDATA[I changed my wordpress blog entry permlink format. But some link to my blog exists on Internet doesn&#8217;t&#160;work which results in a HTTP 404 error. Why redirect is better then rewrite Someone may have the same question, but take it &#8230; <a href="http://blog.feuvan.net/2007/04/20/134-lighttpd-url-redirect-for-wordpress-permlink-changes.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I changed my wordpress blog entry permlink format. But some link to my blog exists on Internet doesn&#8217;t&nbsp;work which results in a HTTP 404 error.</p>
<h3>Why redirect is better then rewrite</h3>
<p>Someone may have the same question, but take it easy, it depends on your decision.</p>
<p>But rewrite has it&#8217;s benefits also, existed link will work without any changes. RSS feed, your live writer(maybe you prefer Word2007? :P) will still work, no need to change the configuration.</p>
<p>I want all visitors include search engine spiders <strong>get to know</strong> that the permlink changes, that&#8217;s why I choose redirect, not rewrite.</p>
<h3>Draft conf, simple and ugly</h3>
<p>For example, <a href="http://feuvan.net/wordpress/?p=107">http://feuvan.net/wordpress/?p=107</a>&nbsp;now should be <a title="http://blog.feuvan.net/index.php/2007/03/10/win-ce-platform-builder-60-evalutation-offline-download.html" href="http://blog.feuvan.net/index.php/2007/03/10/win-ce-platform-builder-60-evalutation-offline-download.html">http://blog.feuvan.net/index.php/2007/03/10/win-ce-platform-builder-60-evalutation-offline-download.html</a>, then I have to configure my lighttpd configure like these.</p>
<blockquote><p>$HTTP["url"] =~ &#8220;^/wordpress&#8221; {<br />&nbsp;&nbsp;&nbsp; url.redirect =( <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8220;^/wordpress/(.*)$&#8221; =&gt; &#8220;<a href="http://blog.feuvan.net/index.php/">http://blog.feuvan.net/index.php/</a>$1&#8243;<br />&nbsp;&nbsp;&nbsp; )<br />}</p>
</blockquote>
<p>But some links like <a title="http://feuvan.net/wordpress/index.php?p=56" href="http://feuvan.net/wordpress/index.php?p=56">http://feuvan.net/wordpress/index.php?p=56</a>&nbsp;will be redirected to <a title="http://blog.feuvan.net/index.php/index.php?p=56" href="http://blog.feuvan.net/index.php/index.php?p=56">http://blog.feuvan.net/index.php/index.php?p=56</a>, it&#8217;s ugly, er&#8230;&#8230;</p>
<h3><font face="Verdana">More clean conf file</font></h3>
<p>So here we have a newer configure file:</p>
<blockquote><p>$HTTP["url"] =~ &#8220;^/wordpress&#8221; {<br />&nbsp;&nbsp;&nbsp; url.redirect =(<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8220;^/wordpress/index.php?(.*)$&#8221; =&gt; &#8220;<a href="http://blog.feuvan.net/index.php/">http://blog.feuvan.net/index.php/</a>$1&#8243;,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8220;^/wordpress/(.*)$&#8221; =&gt; &#8220;<a href="http://blog.feuvan.net/index.php/">http://blog.feuvan.net/index.php/</a>$1&#8243;<br />&nbsp;&nbsp;&nbsp; )<br />}</p>
</blockquote>
<p>Now the old link will be redirected to <a href="http://blog.feuvan.net/index.php/?p=56">http://blog.feuvan.net/index.php/?p=56</a>.</p>
<h3>Furthermore</h3>
<p>Wait, why not redirect to the new permlink directly?</p>
<p>Maybe I can throw out a solution.</p>
<h3>NOTE:</h3>
<p>You should enable mod_redirect&nbsp;to make the configuration works for you.</p>
<p>The article is specified to lighttpd 1.4.x series.</p>
<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2Fblog.feuvan.net%2F2007%2F04%2F20%2F134-lighttpd-url-redirect-for-wordpress-permlink-changes.html&amp;title=Lighttpd+url-redirect+for+Wordpress+Permlink+changes" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/digg.png" alt="Digg This" title="Digg This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.reddit.com/submit?url=http%3A%2F%2Fblog.feuvan.net%2F2007%2F04%2F20%2F134-lighttpd-url-redirect-for-wordpress-permlink-changes.html&amp;title=Lighttpd+url-redirect+for+Wordpress+Permlink+changes" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/reddit.png" alt="Reddit This" title="Reddit This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.feuvan.net%2F2007%2F04%2F20%2F134-lighttpd-url-redirect-for-wordpress-permlink-changes.html&amp;title=Lighttpd+url-redirect+for+Wordpress+Permlink+changes" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/stumbleupon.png" alt="Stumble Now!" title="Stumble Now!" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fblog.feuvan.net%2F2007%2F04%2F20%2F134-lighttpd-url-redirect-for-wordpress-permlink-changes.html&amp;headline=Lighttpd+url-redirect+for+Wordpress+Permlink+changes" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/yahoo_buzz.png" alt="Buzz This" title="Buzz This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dzone.com/links/add.html?title=Lighttpd+url-redirect+for+Wordpress+Permlink+changes&amp;url=http%3A%2F%2Fblog.feuvan.net%2F2007%2F04%2F20%2F134-lighttpd-url-redirect-for-wordpress-permlink-changes.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/dzone.png" alt="Vote on DZone" title="Vote on DZone" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.facebook.com/sharer.php?t=Lighttpd+url-redirect+for+Wordpress+Permlink+changes&amp;u=http%3A%2F%2Fblog.feuvan.net%2F2007%2F04%2F20%2F134-lighttpd-url-redirect-for-wordpress-permlink-changes.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/facebook.png" alt="Share on Facebook" title="Share on Facebook" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://delicious.com/save?title=Lighttpd+url-redirect+for+Wordpress+Permlink+changes&amp;url=http%3A%2F%2Fblog.feuvan.net%2F2007%2F04%2F20%2F134-lighttpd-url-redirect-for-wordpress-permlink-changes.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/delicious.png" alt="Bookmark this on Delicious" title="Bookmark this on Delicious" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dotnetkicks.com/kick/?title=Lighttpd+url-redirect+for+Wordpress+Permlink+changes&amp;url=http%3A%2F%2Fblog.feuvan.net%2F2007%2F04%2F20%2F134-lighttpd-url-redirect-for-wordpress-permlink-changes.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/dotnetkicks.png" alt="Kick It on DotNetKicks.com" title="Kick It on DotNetKicks.com" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://dotnetshoutout.com/Submit?title=Lighttpd+url-redirect+for+Wordpress+Permlink+changes&amp;url=http%3A%2F%2Fblog.feuvan.net%2F2007%2F04%2F20%2F134-lighttpd-url-redirect-for-wordpress-permlink-changes.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/dotnetshoutout.png" alt="Shout it" title="Shout it" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fblog.feuvan.net%2F2007%2F04%2F20%2F134-lighttpd-url-redirect-for-wordpress-permlink-changes.html&amp;title=Lighttpd+url-redirect+for+Wordpress+Permlink+changes&amp;summary=&amp;source=" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/linkedin.png" alt="Share on LinkedIn" title="Share on LinkedIn" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.technorati.com/faves?add=http%3A%2F%2Fblog.feuvan.net%2F2007%2F04%2F20%2F134-lighttpd-url-redirect-for-wordpress-permlink-changes.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/technorati.png" alt="Bookmark this on Technorati" title="Bookmark this on Technorati" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://twitter.com/home?status=Reading+http%3A%2F%2Fblog.feuvan.net%2F2007%2F04%2F20%2F134-lighttpd-url-redirect-for-wordpress-permlink-changes.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/twitter.png" alt="Post on Twitter" title="Post on Twitter" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.google.com/buzz/post?url=http%3A%2F%2Fblog.feuvan.net%2F2007%2F04%2F20%2F134-lighttpd-url-redirect-for-wordpress-permlink-changes.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://blog.feuvan.net/2007/04/20/134-lighttpd-url-redirect-for-wordpress-permlink-changes.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Configure nginx as front-end web server</title>
		<link>http://blog.feuvan.net/2007/04/17/130-configure-nginx-as-front-end-web-server.html</link>
		<comments>http://blog.feuvan.net/2007/04/17/130-configure-nginx-as-front-end-web-server.html#comments</comments>
		<pubDate>Mon, 16 Apr 2007 17:07:34 +0000</pubDate>
		<dc:creator>feuvan</dc:creator>
				<category><![CDATA[Default]]></category>
		<category><![CDATA[lighttpd]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://feuvan.net/wordpress/index.php/archives/130</guid>
		<description><![CDATA[I&#8217;ve been using lighttpd for a long time, it&#8217;s faster and stable. But 1.4.x series of lighttpd lacks some features I need: powerful proxy mod, dav_svn mod, real IP extract (as mod_extract_forwarded in apache). Most of the bandwidth of feuvan.net &#8230; <a href="http://blog.feuvan.net/2007/04/17/130-configure-nginx-as-front-end-web-server.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using lighttpd for a long time, it&#8217;s faster and stable. But 1.4.x series of lighttpd lacks some features I need: powerful proxy mod, dav_svn mod, real IP extract (as mod_extract_forwarded in apache).</p>
<p>Most of the bandwidth of feuvan.net is contributed to a web game proxy using proxy mod of lighttpd 1.4.13 :&nbsp;<a href="http://chaoswar.feuvan.net">http://chaoswar.feuvan.net</a>&nbsp;(official: <a href="http://alpha.chaoswar.cn:8080">http://alpha.chaoswar.cn:8080</a>&nbsp;), &nbsp;the lighttpd causes many TIME_WAIT connections in high load condition. Therefore, I want to use a powerful proxy like squid to do the proxy work. nginx ( Engine X ) is my selection. Squid is too heavy ;-).</p>
<p>It&#8217;s easy to install in debian, just type <em>aptitude install nginx</em> as root. Then I changed lighttpd listening port to localhost:81, and configure nginx to run on 0.0.0.0:80.</p>
<p>nginx.conf:</p>
<blockquote><p>user www-data;<br />worker_processes&nbsp; 1;</p>
<p>error_log&nbsp; /var/log/nginx/error.log;<br />pid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /var/run/nginx.pid;</p>
<p>events {<br />&nbsp;&nbsp;&nbsp; worker_connections&nbsp; 4096;<br />&nbsp;&nbsp;&nbsp; use epoll;<br />}</p>
<p>http {<br />&nbsp;&nbsp;&nbsp; include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /etc/nginx/mime.types;<br />&nbsp;&nbsp;&nbsp; default_type&nbsp; application/octet-stream;</p>
<p>&nbsp;&nbsp;&nbsp; access_log&nbsp; /var/log/nginx/access.log;</p>
<p>&nbsp;&nbsp;&nbsp; sendfile&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on;<br />&nbsp;&nbsp;&nbsp; tcp_nopush&nbsp;&nbsp;&nbsp;&nbsp; on;</p>
<p>&nbsp;&nbsp;&nbsp; keepalive_timeout&nbsp; 35;<br />&nbsp;&nbsp;&nbsp; tcp_nodelay&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on;</p>
<p>&nbsp;&nbsp;&nbsp; gzip&nbsp; on;</p>
<p>&nbsp;&nbsp;&nbsp; server {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; listen&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 80;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; location / {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proxy_pass http://127.0.0.1:81;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /etc/nginx/proxy.conf;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p>
<p>&nbsp;&nbsp;&nbsp; }</p>
<p>&nbsp;&nbsp;&nbsp; upstream chaoswar_cn {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; server alpha.chaoswar.cn:8080;<br />&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp; server {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; listen&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 80;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; server_name&nbsp;&nbsp;&nbsp;&nbsp; chaoswar.feuvan.net;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; location / {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proxy_pass http://chaoswar_cn;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /etc/nginx/proxy.conf;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp; }<br />}</p>
</blockquote>
<p>proxy.conf:</p>
<blockquote><p>proxy_redirect&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; off;<br />proxy_set_header&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Host $host;<br />proxy_set_header&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; X-Real-IP $remote_addr;<br />proxy_set_header&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; X-Forwarded-For $proxy_add_x_forwarded_for;<br />client_max_body_size&nbsp;&nbsp;&nbsp; 10m;<br />client_body_buffer_size 128k;<br />proxy_connect_timeout&nbsp;&nbsp; 30;<br />proxy_send_timeout&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 30;<br />proxy_read_timeout&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 30;<br />proxy_buffer_size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4k;<br />proxy_buffers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4 32k;<br />proxy_busy_buffers_size 64k;<br />proxy_temp_file_write_size 64k;</p>
</blockquote>
<p>The most&nbsp;content of&nbsp;configure files are copied from <a href="http://wiki.codemongers.com/Main" target="_blank">nginx wiki</a>, it&#8217;s easy to read. And may be I can do more optimizations like static content (picuture) cache ( expire 30d?). But the main purpose of this article is to show you a general whole picture of the proxy function of Nginx.</p>
<p>BTW, nginx is not just a light-weight squid like proxy server! It&#8217;s also a HTTP/MAIL Server.</p>
<p>Anyway, I&#8217;m still waiting for 1.5.0 release of lighttpd.</p>
<p>See also: <a href="http://nginx.net/" target="_blank">nginx</a>, <a href="http://wiki.codemongers.com/" target="_blank">nginx wiki</a>, <a href="http://trac.lighttpd.net/trac/wiki/Docs%3AModProxy" target="_blank">lighttpd 1.4.x mod_proxy</a>, <a href="http://trac.lighttpd.net/trac/wiki/Docs%3AModProxyCore" target="_blank">lighttpd 1.5.x mod_proxy_core</a></p>
<p><a href="http://hostingfu.com/article/nginx-vs-lighttpd-for-a-small-vps" target="_blank">Nginx vs Lighttpd for a small VPS</a></p>
<div class="lightsocial_container"><a class="lightsocial_a" href="http://digg.com/submit?url=http%3A%2F%2Fblog.feuvan.net%2F2007%2F04%2F17%2F130-configure-nginx-as-front-end-web-server.html&amp;title=Configure+nginx+as+front-end+web+server" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/digg.png" alt="Digg This" title="Digg This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.reddit.com/submit?url=http%3A%2F%2Fblog.feuvan.net%2F2007%2F04%2F17%2F130-configure-nginx-as-front-end-web-server.html&amp;title=Configure+nginx+as+front-end+web+server" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/reddit.png" alt="Reddit This" title="Reddit This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fblog.feuvan.net%2F2007%2F04%2F17%2F130-configure-nginx-as-front-end-web-server.html&amp;title=Configure+nginx+as+front-end+web+server" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/stumbleupon.png" alt="Stumble Now!" title="Stumble Now!" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://buzz.yahoo.com/buzz?targetUrl=http%3A%2F%2Fblog.feuvan.net%2F2007%2F04%2F17%2F130-configure-nginx-as-front-end-web-server.html&amp;headline=Configure+nginx+as+front-end+web+server" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/yahoo_buzz.png" alt="Buzz This" title="Buzz This" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dzone.com/links/add.html?title=Configure+nginx+as+front-end+web+server&amp;url=http%3A%2F%2Fblog.feuvan.net%2F2007%2F04%2F17%2F130-configure-nginx-as-front-end-web-server.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/dzone.png" alt="Vote on DZone" title="Vote on DZone" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.facebook.com/sharer.php?t=Configure+nginx+as+front-end+web+server&amp;u=http%3A%2F%2Fblog.feuvan.net%2F2007%2F04%2F17%2F130-configure-nginx-as-front-end-web-server.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/facebook.png" alt="Share on Facebook" title="Share on Facebook" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://delicious.com/save?title=Configure+nginx+as+front-end+web+server&amp;url=http%3A%2F%2Fblog.feuvan.net%2F2007%2F04%2F17%2F130-configure-nginx-as-front-end-web-server.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/delicious.png" alt="Bookmark this on Delicious" title="Bookmark this on Delicious" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.dotnetkicks.com/kick/?title=Configure+nginx+as+front-end+web+server&amp;url=http%3A%2F%2Fblog.feuvan.net%2F2007%2F04%2F17%2F130-configure-nginx-as-front-end-web-server.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/dotnetkicks.png" alt="Kick It on DotNetKicks.com" title="Kick It on DotNetKicks.com" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://dotnetshoutout.com/Submit?title=Configure+nginx+as+front-end+web+server&amp;url=http%3A%2F%2Fblog.feuvan.net%2F2007%2F04%2F17%2F130-configure-nginx-as-front-end-web-server.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/dotnetshoutout.png" alt="Shout it" title="Shout it" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fblog.feuvan.net%2F2007%2F04%2F17%2F130-configure-nginx-as-front-end-web-server.html&amp;title=Configure+nginx+as+front-end+web+server&amp;summary=&amp;source=" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/linkedin.png" alt="Share on LinkedIn" title="Share on LinkedIn" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.technorati.com/faves?add=http%3A%2F%2Fblog.feuvan.net%2F2007%2F04%2F17%2F130-configure-nginx-as-front-end-web-server.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/technorati.png" alt="Bookmark this on Technorati" title="Bookmark this on Technorati" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://twitter.com/home?status=Reading+http%3A%2F%2Fblog.feuvan.net%2F2007%2F04%2F17%2F130-configure-nginx-as-front-end-web-server.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/twitter.png" alt="Post on Twitter" title="Post on Twitter" /></a>&nbsp;&nbsp;<a class="lightsocial_a" href="http://www.google.com/buzz/post?url=http%3A%2F%2Fblog.feuvan.net%2F2007%2F04%2F17%2F130-configure-nginx-as-front-end-web-server.html" ><img class="lightsocial_img" src="http://blog.feuvan.net/wp-content/plugins/light-social/google_buzz.png" alt="Google Buzz (aka. Google Reader)" title="Google Buzz (aka. Google Reader)" /></a>&nbsp;&nbsp;</div>]]></content:encoded>
			<wfw:commentRss>http://blog.feuvan.net/2007/04/17/130-configure-nginx-as-front-end-web-server.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
