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

Go Back   LiteSpeed Support Forums > LiteSpeed Load Balancer > General > [Solved] Forwarding vhosts

Reply
 
Thread Tools Display Modes
  #1  
Old 10-23-2012, 01:49 PM
ToddFreeman ToddFreeman is offline
New Member
 
Join Date: Oct 2012
Posts: 4
Default [Solved] Forwarding vhosts

We are using litepeed load balancer to loadbalance a cpanel cluster, however currently it does not seem to forward the vhost information, it just forwards the traffic to the IP.

So when we have multiple domains on the same IP, we only get the "default" page, it does not display the vhosts that was requested. Also for this setup apache is running on port 82, LSLB is on port 80.
The node address line is this:
(lb02)68.235.35.001>68.235.35.002:82, (lb02)68.235.35.001->68.235.35.003:82

[where 001 is the LB 002 is node1 and 003 is node2 ]
Reply With Quote
  #2  
Old 10-23-2012, 04:07 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
check domains of vhost mappings in listener. make sure '*' or domain name is there.
make sure vhost is enabled on the cpanel.
Reply With Quote
  #3  
Old 10-24-2012, 11:41 PM
ToddFreeman ToddFreeman is offline
New Member
 
Join Date: Oct 2012
Posts: 4
Yes I have verified all of that, also the sites are working normally without the load balancer, they only start displaying the default page when going through LSLB.
Adding a * means it would be passing no vhost information to the webserver.
Reply With Quote
  #4  
Old 10-25-2012, 12:31 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,337
Quote:
Originally Posted by ToddFreeman View Post
...
The node address line is this:
(lb02)68.235.35.001>68.235.35.002:82, (lb02)68.235.35.001->68.235.35.003:82

[where 001 is the LB 002 is node1 and 003 is node2 ]

try followings:
1. change node list to 68.235.35.001->68.235.35.002:82, 68.235.35.001->68.235.35.003:82
or
2. create two workgroups (instead of one) with one node address per each.


BTW, our lab test confirms '*' in listener enables lslb pass through received vhost name to the backend (as pointed out earlier).

Last edited by webizen; 10-25-2012 at 12:39 AM..
Reply With Quote
  #5  
Old 10-25-2012, 02:45 AM
ToddFreeman ToddFreeman is offline
New Member
 
Join Date: Oct 2012
Posts: 4
Thank you, changing the node line and splitting it into 2 workers did the trick.
Reply With Quote
Reply

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:51 PM.



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