Virtualhosts

From: Molnár Gábor <gabor#hirek.hu>
Date: Tue, 30 Dec 2008 11:37:55 +0100


Hi,

sorry my english...
We have lot of domains, 2 apache webservers. We using haproxy, but the virtualhosts dosn't work in webservers. I'm trying use other ports (81,82), but it's not good...

What can I do? Any workaround or something else?

Here is my config:
global

        log 127.0.0.1   local0 
debug                                                                                                                                                                           

        
daemon                                                                                                                                                                                                 

        maxconn 
8192                                                                                                                                                                                           

                                                                                                                                                                                                               

defaults                                                                                                                                                                                                       

        log     
global                                                                                                                                                                                         

        mode    
http                                                                                                                                                                                           

        option  
httplog                                                                                                                                                                                        

        option  
dontlognull                                                                                                                                                                                    

        option 
forwardfor                                                                                                                                                                                      

        option 
httpclose                                                                                                                                                                                       

        retries 
3                                                                                                                                                                                              

        option        
redispatch                                                                                                                                                                               

        maxconn 
20000                                                                                                                                                                                          

        contimeout      
10000                                                                                                                                                                                  

        clitimeout      
100000                                                                                                                                                                                 

        srvtimeout      
100000                                                                                                                                                                                 

        timeout http-request 15000                    
                               

listen webfarm 
192.168.1.100:80                                                                                                                                                                                

       mode 
http                                                                                                                                                                                               

       balance 
roundrobin                                                                                                                                                                                      

        option 
forwardfor                                                                                                                                                                                      

        option 
httpclose                                                                                                                                                                                       

       cookie JSESSIONID 
prefix                                                                                                                                                                                

       option httpchk 
http://www.website1.hu/check.html                                                                                                                                                            

       server web1 192.168.1.105:80 cookie A 
check                                                                                                                                                        

       server web2 192.168.1.106:80 cookie B check

Thanks a lot
G. Received on 2008/12/30 11:37

This archive was generated by hypermail 2.2.0 : 2008/12/30 11:45 CET