Automatic sub-domains with lighttpd mapping to a specific folder
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 }