<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: mod_evhost code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Fri, 29 Aug 2008 04:57:29 GMT</pubDate>
    <description>DZone Snippets: mod_evhost code</description>
    <item>
      <title>Automatic sub-domains with lighttpd mapping to a specific folder</title>
      <link>http://snippets.dzone.com/posts/show/322</link>
      <description>Using lighttpd's mod_evhost with &lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;# %% =&gt; % sign&lt;br /&gt;# %0 =&gt; domain name + tld&lt;br /&gt;# %1 =&gt; tld&lt;br /&gt;# %2 =&gt; domain name without tld&lt;br /&gt;# %3 =&gt; subdomain 1 name&lt;br /&gt;# %4 =&gt; subdomain 2 name&lt;br /&gt;#&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;$HTTP["host"] =~ "jasonhoffman.org" {&lt;br /&gt;evhost.path-pattern        = "/home/jah/public/%3/"&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Wed, 25 May 2005 18:35:22 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/322</guid>
      <author>jason (Jason Hoffman)</author>
    </item>
  </channel>
</rss>
