Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

Automatic sub-domains with lighttpd mapping to a specific folder

Using lighttpd's mod_evhost with

   1  
   2  # %% => % sign
   3  # %0 => domain name + tld
   4  # %1 => tld
   5  # %2 => domain name without tld
   6  # %3 => subdomain 1 name
   7  # %4 => subdomain 2 name
   8  #


   1  
   2  $HTTP["host"] =~ "jasonhoffman.org" {
   3  evhost.path-pattern        = "/home/jah/public/%3/"
   4  }
« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS