LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > Baffling listener behaviour

Reply
 
Thread Tools Display Modes
  #1  
Old 09-25-2009, 04:35 AM
gcaplan gcaplan is offline
Member
 
Join Date: Jul 2008
Posts: 19
Default Baffling listener behaviour

Hi Folks

Experiencing something rather odd. Is this a bug, or am I misunderstanding something?

I use sub domains for the different development versions of my sites, eg:

lio-test.mysite.com
lio-dev.mysite.com

I've done this many times with no problems. But setting up a listener for the following sub-domain:

asc-dev.mysite.com

LS is consistently directing requests to an entirely unrelated v-host mapping in the same listener (the domains aren't remotely similar).

With the v-host setting:

foo.mysite.com, asc-dev.mysite.com, asc_dev.mysite.com, ascdev.mysite.com

all the sub-domains work as expected except asc-dev. Changing the position of asc-dev.mysite.com in the string doesn't have any effect.

I'm confident this isn't a DNS or a rewrite issue, and there are no wildcards in the v-host setting of the site that's getting the misdirected requests, or the vhost that's being misdirected (as you can see).

So what is going on here? Am I missing something? Or could this be a bug in the listener's v-host parser?? I guess asc and dev are strings that are likely to turn up in code...

Obviously, I can work around this by using another sub-domain, but I'd prefer to use my normal format, as I have scripts that use it. Plus I'm intrigued!

Geoff
Reply With Quote
  #2  
Old 09-25-2009, 10:05 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
something wrong with the vhost configuration, you should check the error log.
Reply With Quote
  #3  
Old 09-28-2009, 03:42 AM
gcaplan gcaplan is offline
Member
 
Join Date: Jul 2008
Posts: 19
Nothing in the logs that I can see.

So what could cause this in the vhost setup?

The setup is simply a cut and paste from another similar site which works fine - I just changed the paths.

And so far as I can see the request never reaches the vhost - the listener is mapping it to the other domain at an earlier stage...

Last edited by gcaplan; 09-28-2009 at 03:54 AM..
Reply With Quote
  #4  
Old 09-29-2009, 10:08 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Maybe your local /etc/hosts override the IP for that domain?
If the other domain is mapping to a different listener.
Reply With Quote
  #5  
Old 10-02-2009, 10:02 AM
gcaplan gcaplan is offline
Member
 
Join Date: Jul 2008
Posts: 19
Quote:
Originally Posted by mistwang View Post
Maybe your local /etc/hosts override the IP for that domain?
Can't be that - it's just a minimal default configuration.

Quote:
Originally Posted by mistwang View Post
If the other domain is mapping to a different listener.
Can't be that either - as I said - both domains are mapped to the same listener.

Any ideas? It would be nice to get this fixed. Apart from anything else, I'm intrigued to figure out what could be causing this!
Reply With Quote
  #6  
Old 10-03-2009, 02:48 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Does the mapping show up in the status page?
Reply With Quote
  #7  
Old 10-05-2009, 11:20 AM
gcaplan gcaplan is offline
Member
 
Join Date: Jul 2008
Posts: 19
Quote:
Originally Posted by mistwang View Post
Does the mapping show up in the status page?
Yes, it's there:

[asc_dev] ascdev.mysite.com asc-dev.mysite.com asc_dev.mysite.com

ascdev and asc_dev work as expected.

asc-dev is mapped to the other site on the listener...

Geoff
Reply With Quote
  #8  
Old 10-05-2009, 08:17 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Maybe somehow the other site's mapping includes "asc-dev", LSWS will use the first match.
Can you show the mapping of the other site in the status page of web console?
Reply With Quote
Reply

Tags
listener

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

Forum Jump


All times are GMT -7. The time now is 06:45 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.