I have two servers (linux with apache 2). I have a load balancer cisco ace which redirect all requests on server 1 or server 2.

I need 2 websites:

  • www.sites1.com
  • www.sites2.com

In both server, I added virtualhost in httpd.conf but It doesn't work.

Special configuration in loadbalancer? Special configuration in apache?

Pour récapituler:
www.sites1.com -> load balancer -> server 1 or 2 -> virutalhost website for sites1
www.sites2.com -> load balancer -> server 1 or 2 -> virutalhost site ndd2

link|improve this question
not sure if this is what you are after, see if my question here regaring to vhosts helps – tombull89 May 3 '11 at 8:30
feedback

1 Answer

up vote 1 down vote accepted

Try to log the requests coming from your load balancer (is layer 4 or layer 7 load balancing?); especially log the HTTP_HOST header and see if the host www.sitesX.com are set.

link|improve this answer
Thanks a lot. I discover that I have virtual bay (LB + server 1 + server 2) and I used bad address. – Epharion May 3 '11 at 10:03
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.