HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Server Operation (http://www.howtoforge.com/forums/forumdisplay.php?f=5)
-   -   Listen on Multiple IP's in HAProxy? (http://www.howtoforge.com/forums/showthread.php?t=62256)

davefrooney 17th June 2013 12:30

Listen on Multiple IP's in HAProxy?
 
I have 3 IP's pointing at my load balancer. I currently have it setup to listen for one IP 10.0.0.10. How would I setup it up to listen on all 3? Do I just need to define another webfarm? I have included my haproxy.cfg


Code:


 
global

      uid 99
      gid 99


      daemon
  defaults


      mode http

      retries 3


      option redispatch
      maxconn 10000
      contimeout 10000
      clitimeout 50000
      srvtimeout 50000

  listen webfarm 10.0.0.10:80

      mode http
      stats uri /haproxy
      balance roundrobin
      cookie webpool insert
      option  httpclose
      option forwardfor
      server WWW1 10.0.0.20:80 cookie webpool_WWW1 check port 81
      server WWW2 10.0.0.30:80 cookie webpool_WWW2 check port 81
      server WWW3 10.0.0.40:80 cookie webpool_WWW3 check port 81

  listen https 10.0.0.10:443   
      balance source
      mode tcp
      server WWW1 10.0.0.20:443 check
      server WWW2 10.0.0.30:443 check
      server WWW3 10.0.0.40:443 check

Thanks in advance for your help


All times are GMT +2. The time now is 10:23.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.