<?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>D90 Tools &#38; Techniques &#187; Lighttpd</title>
	<atom:link href="http://www.d90.us/toolbox/category/web-hosting-tools/lighttpd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.d90.us/toolbox</link>
	<description>So I can remember how I did stuff in the future...</description>
	<lastBuildDate>Fri, 26 Nov 2010 20:08:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>Lighttpd, virtual hosts, alternative ports</title>
		<link>http://www.d90.us/toolbox/2009/05/29/lighttpd-virtual-hosts-alternative-ports/</link>
		<comments>http://www.d90.us/toolbox/2009/05/29/lighttpd-virtual-hosts-alternative-ports/#comments</comments>
		<pubDate>Fri, 29 May 2009 20:25:50 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Lighttpd]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Sysadmin Tools]]></category>

		<guid isPermaLink="false">http://www.d90.us/toolbox/?p=92</guid>
		<description><![CDATA[In the configuration of our new server, all ports 80 and 443 traffic is handled by Squid as a reverse proxy.  8080 is the &#8220;backdoor&#8221; that bypasses Squid and hits Lighttpd directly. But the standard format of a Lighttpd virtual host entry doesn&#8217;t recognize alternate ports appended after the tld.  Not a big deal, this [...]]]></description>
			<content:encoded><![CDATA[<p>In the configuration of our new server, all ports 80 and 443 traffic is handled by Squid as a reverse proxy.  8080 is the &#8220;backdoor&#8221; that bypasses Squid and hits Lighttpd directly.</p>
<p>But the standard format of a Lighttpd virtual host entry doesn&#8217;t recognize alternate ports appended after the tld.  Not a big deal, this does the trick:</p>
<blockquote><p>$HTTP["host"] =~ &#8220;(^|\.)getmiro\.(com|net|org)($|:8080$)&#8221; {</p></blockquote>
<p>Translated:<br />
<em>(^|\.)</em> Any hostname<br />
<em>getmiro\</em> Going to the gemtiro domain<br />
<em>.(com|net|org)</em> with a top level domain of com, net, or org<br />
<em>($|:8080$){</em> and ending with the tld or :8080 will be processed by the rules that follow.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.d90.us/toolbox/2009/05/29/lighttpd-virtual-hosts-alternative-ports/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

