This is a discussion on Lighttpd socket with multiple subdomains or single IP within the Web servers forums, part of the Mastering Servers category; 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 = ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
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"
}
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 |
| Sponsored Links | ||
|
|
|
||||
|
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 |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| find subdomains in url | nvbhole | Shell scripting | 2 | 12-22-2007 12:12 PM |
| single DHCP server with multiple VLAN's | frank | Computer Networking and Internet/broadband | 2 | 12-07-2007 12:38 PM |
| How to start SSH in Single User Mode on FreeBSD | NeoGreen | Getting started tutorials | 2 | 08-12-2007 03:05 AM |
| Howto boot freebsd single user mode | raj | All about FreeBSD/OpenBSD/NetBSD | 1 | 12-12-2006 02:40 PM |
| how to create multiple file in a single command | selvam | Shell scripting | 3 | 07-26-2006 01:01 AM |