<?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: Intelligent lighttpd directory structure w/evhost.path-pattern</title>
	<atom:link href="http://blog.jolexa.net/2009/09/18/intelligent-lighttpd-directory-structure-wevhost-path-pattern/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jolexa.net/2009/09/18/intelligent-lighttpd-directory-structure-wevhost-path-pattern/</link>
	<description>Random thoughts and rants...mostly Linux</description>
	<lastBuildDate>Tue, 07 Feb 2012 16:46:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jeremy Olexa</title>
		<link>http://blog.jolexa.net/2009/09/18/intelligent-lighttpd-directory-structure-wevhost-path-pattern/comment-page-1/#comment-674</link>
		<dc:creator>Jeremy Olexa</dc:creator>
		<pubDate>Sat, 03 Oct 2009 22:36:45 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jolexa.net/?p=495#comment-674</guid>
		<description>I didn&#039;t like the way I had listed up there. Here is what I am using now (self explanatory I think)

&lt;pre&gt;&lt;code&gt;
# Set default vhost server location here
evhost.path-pattern = &quot;/www/%0/htdocs&quot;

# If we don&#039;t have a %3, default to htdocs
$HTTP[&quot;host&quot;] =~ &quot;^[^.]+\.[^.]+$&quot; {
    evhost.path-pattern = &quot;/www/%2.%1/htdocs/&quot;
}

# If we don&#039;t have a %4, find the subdomain 1.
$HTTP[&quot;host&quot;] =~ &quot;^[^.]+\.[^.]+\.[^.]+$&quot; {
    evhost.path-pattern = &quot;/www/%3.%2.%1/htdocs/&quot;
}

# If we have a %4, find the subdomain2.subdomain1. If we have have %4+, use %4
# anyway. If you have 4+, write a explicit rule for doc-root.
$HTTP[&quot;host&quot;] =~ &quot;^.+\.[^.]+\.[^.]+\.[^.]+$&quot; {
    evhost.path-pattern = &quot;/www/%4.%3.%2.%1/htdocs/&quot;
}
&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t like the way I had listed up there. Here is what I am using now (self explanatory I think)</p>
<pre><code>
# Set default vhost server location here
evhost.path-pattern = "/www/%0/htdocs"

# If we don't have a %3, default to htdocs
$HTTP["host"] =~ "^[^.]+\.[^.]+$" {
    evhost.path-pattern = "/www/%2.%1/htdocs/"
}

# If we don't have a %4, find the subdomain 1.
$HTTP["host"] =~ "^[^.]+\.[^.]+\.[^.]+$" {
    evhost.path-pattern = "/www/%3.%2.%1/htdocs/"
}

# If we have a %4, find the subdomain2.subdomain1. If we have have %4+, use %4
# anyway. If you have 4+, write a explicit rule for doc-root.
$HTTP["host"] =~ "^.+\.[^.]+\.[^.]+\.[^.]+$" {
    evhost.path-pattern = "/www/%4.%3.%2.%1/htdocs/"
}
</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy Olexa</title>
		<link>http://blog.jolexa.net/2009/09/18/intelligent-lighttpd-directory-structure-wevhost-path-pattern/comment-page-1/#comment-654</link>
		<dc:creator>Jeremy Olexa</dc:creator>
		<pubDate>Thu, 24 Sep 2009 18:09:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jolexa.net/?p=495#comment-654</guid>
		<description>Cool, I don&#039;t need anything that complex. Just my personal sites and a friends domain on the server.</description>
		<content:encoded><![CDATA[<p>Cool, I don&#8217;t need anything that complex. Just my personal sites and a friends domain on the server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Branko Badrljica</title>
		<link>http://blog.jolexa.net/2009/09/18/intelligent-lighttpd-directory-structure-wevhost-path-pattern/comment-page-1/#comment-650</link>
		<dc:creator>Branko Badrljica</dc:creator>
		<pubDate>Mon, 21 Sep 2009 19:18:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jolexa.net/?p=495#comment-650</guid>
		<description>I use varnish for reverse proxy and N processes x lighttpd instance perr site, each one with its own vconfig file and username:group identity.

This means, that all my sites on the machine are isolated from each other with quite strict permissions, so one user can&#039;t get into other users website files.

Works like a charm.</description>
		<content:encoded><![CDATA[<p>I use varnish for reverse proxy and N processes x lighttpd instance perr site, each one with its own vconfig file and username:group identity.</p>
<p>This means, that all my sites on the machine are isolated from each other with quite strict permissions, so one user can&#8217;t get into other users website files.</p>
<p>Works like a charm.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

