View Single Post

  #1 (permalink)  
Old 03-15-2007, 04:24 PM
oscar oscar is offline
Junior Member
 
Join Date: Mar 2007
Posts: 4
Rep Power: 0
oscar
Default Smartest way to handle domains (vhost)

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?
Reply With Quote