View Single Post

  #1 (permalink)  
Old 03-14-2007, 06:30 AM
muks muks is offline
Junior Member
User
 
Join Date: Mar 2007
Posts: 13
Rep Power: 0
muks
Default Lighttpd socket with multiple subdomains or single IP

based on this example on the tutorials

Code:
$SERVER["socket"] == "192.168.1.2:80" {
server.document-root = "/home/lighttpd/theos.in/http"
server.errorlog = "/var/log/lighttpd/theos.in/error.log"
accesslog.filename = "/var/log/lighttpd/theos.in/access.log"
}
which binds theos.in to the IP 192.168.1.2

what if there's a subdomain for theos.in say forums.theos.in with a different server.document-root, server.errorlog, accesslog.filename

How do I do it?

Thanks for your help
Reply With Quote