u can try as follows:
Code:
$SERVER["socket"] == "192.168.1.2:80" {
$HTTP["host"] == "theos.in" {
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"
}
$HTTP["host"] == "forum.theos.in" {
server.document-root = "/home/lighttpd/forum.theos.in/http"
server.errorlog = "/var/log/lighttpd/forum.theos.in/error.log"
accesslog.filename = "/var/log/lighttpd/forum.theos.in/access.log"
}
}
make sure theos.in and forum.theos.in points to 192.168.1.2 or use wild card domain
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!
If you have knowledge, let others light their candles at it.
Certified to work on
HP-UX /
Sun Solaris /
RedHat