First of all, GREAT site! Packed with useful information
I'm currently setting up my first web server, using lighttpd. I'm using "simple-vhost.conf" to handle domains, which looks like this (pretty standard):
Code:
server.modules += ( "mod_simple_vhost" )
simple-vhost.server-root = "/var/www/"
simple-vhost.document-root = "pages"
simple-vhost.default-host = "blah.se"
$HTTP["host"] =~ "^www\.(.*)" { url.redirect = ( "^/(.*)" => "http://%1/$1" ) }
Would mod_evhost be better suited so that it would be easier to handle subdomains? Also, using this method, is it possible to have seperate log files, or I will have to write manual rules for every domain in that case?