View Single Post

  #1 (permalink)  
Old 03-06-2007, 12:20 PM
muks muks is offline
Junior Member
User
 
Join Date: Mar 2007
Posts: 13
Rep Power: 0
muks
Default lighttpd domain and subdomain settings

kindly help me shorten my domain and subdomain setting. I want the www.domain.com and domain.com work same with www.subdomain.domain.com and subdomain.domain.com

I currently have the following

Code:
$HTTP["host"] =~ "www.mydomain.info" {
server.document-root = "/home/mydomain/www"
server.errorlog = "/var/log/lighttpd/mydomain.info/error.log"
accesslog.filename = "/var/log/lighttpd/mydomain.info/access.log"
}

$HTTP["host"] =~ "mydomain.info" {
server.document-root = "/home/mydomain/www"
server.errorlog = "/var/log/lighttpd/mydomain.info/error.log"
accesslog.filename = "/var/log/lighttpd/mydomain.info/access.log"
}

$HTTP["host"] =~ "forums.mydomain.info" {
server.document-root = "/home/mydomain/subdomains/forums"
server.errorlog = "/var/log/lighttpd/forums.mydomain.info/error.log"
accesslog.filename = "/var/log/lighttpd/forums.mydomain.info/access.log"
}

$HTTP["host"] =~ "www.forums.mydomain.info" {
server.document-root = "/home/mydomain/subdomains/forums"
server.errorlog = "/var/log/lighttpd/forums.mydomain.info/error.log"
accesslog.filename = "/var/log/lighttpd/forums.mydomain.info/access.log"
}
Thanks in advance.
Reply With Quote