nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Lighttpd Subdomain Problem

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$" ...


Go Back   nixCraft Linux Forum > Mastering Servers > Web servers

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 07-22-2008, 03:48 PM
Junior Member
User
 
Join Date: Jul 2008
My distro: Debian
Posts: 2
Rep Power: 0
Mental Lexicon is on a distinguished road
Default Lighttpd Subdomain Problem

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"
        )
        [....]
}
As you can see, i have several TLD, which are redirect to the main Domain, this is domain.org and i works very well

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/"
        [...]
}
And this is not working. I always end up on the normal domain.org and can't find the problem, but i suggest the redirection-part at the very beginning is the root of evil.

Thanks in Advance
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-24-2008, 04:42 PM
rockdalinux's Avatar
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

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
Reply With Quote
  #3 (permalink)  
Old 07-24-2008, 07:13 PM
Junior Member
User
 
Join Date: Jul 2008
My distro: Debian
Posts: 2
Rep Power: 0
Mental Lexicon is on a distinguished road
Default

Quote:
Originally Posted by rockdalinux View Post
Is subdomain resolving using DNS?
No, it isn't.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT +5.5. The time now is 09:05 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36