Linux / UNIX Tech Support Forum
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$" ...
|
|||||||
| Web servers Discussion on Apache, Nginx and Lighttpd HTTP/web server and configuration issues. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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 | ||
|
|
![]() |
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 Web Server | Lamba | Web servers | 2 | 19-05-2008 10:50 PM |
| lighttpd ProxyPass | thunderbirdsei | Web servers | 0 | 30-04-2008 10:50 PM |
| Redirect + Rewrite Problem in Lighttpd | Lizard King | Web servers | 4 | 17-07-2007 09:44 AM |
| redirect to www in lighttpd | muks | Web servers | 11 | 02-06-2007 10:55 PM |
| lighttpd domain and subdomain settings | muks | Web servers | 4 | 08-03-2007 06:39 PM |