Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|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

1 Answer 1

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.

share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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