This is a discussion on Lighttpd Subdomain Problem within the Web servers forums, part of the Mastering Servers category; Hi, first my settings: Code: $HTTP["host"] =~ "^(www\.)??domain\.(de|com|info)$" { url.redirect = ( "^/(.*)" => "http://www.domain.org/$1", ) } $HTTP["host"] =~ "(^|www\.)??domain\.org$" ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
Hi,
first my settings: Code:
$HTTP["host"] =~ "^(www\.)??domain\.(de|com|info)$" {
url.redirect = (
"^/(.*)" => "http://www.domain.org/$1",
)
}
$HTTP["host"] =~ "(^|www\.)??domain\.org$" {
url.redirect = (
"^/$" => "/portal.php"
)
[....]
}
Now, what i wanted to do is to create a subdomain like this: Code:
$HTTP["host"] =~ "(^|\.)lab\.domain\.org$" {
server.document-root = "/home/domain/lab/"
[...]
}
Thanks in Advance |
| Sponsored Links | ||
|
|
|
||||
|
Is subdomain resolving using DNS?
__________________
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 |
| Redirect + Rewrite Problem in Lighttpd | Lamba | Web servers | 2 | 05-19-2008 11:50 PM |
| lighttpd ProxyPass | thunderbirdsei | Web servers | 0 | 04-30-2008 11:50 PM |
| Redirect + Rewrite Problem in Lighttpd | Lizard King | Web servers | 4 | 07-17-2007 10:44 AM |
| redirect to www in lighttpd | muks | Web servers | 11 | 06-02-2007 11:55 PM |
| lighttpd domain and subdomain settings | muks | Web servers | 4 | 03-08-2007 07:39 PM |