View Single Post

  #2 (permalink)  
Old 03-16-2007, 02:01 AM
rockdalinux's Avatar
rockdalinux rockdalinux is offline
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 581
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

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
Code:
* IN A 192.168.12
__________________
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
Reply With Quote