Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 17th June 2013, 13:30
davefrooney davefrooney is offline
Junior Member
Join Date: Apr 2011
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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 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


       uid 99
       gid 99


       mode http

       retries 3

       option redispatch
       maxconn 10000
       contimeout 10000
       clitimeout 50000
       srvtimeout 50000

   listen webfarm

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

   listen https     
       balance source
       mode tcp
       server WWW1 check
       server WWW2 check
       server WWW3 check
Thanks in advance for your help
Reply With Quote
Sponsored Links


haproxy, load-balancing

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
"The Perfect Server Guide" problems DamianFick Installation/Configuration 10 5th April 2012 14:34
How To Configure PureFTPd To Accept TLS Sessions On Debian Squeeze GarGamel55 HOWTO-Related Questions 11 6th August 2011 12:45
URGENT PLEASE: 3rd Time Installing and Still Have SMTP Issues with PostFix norby Server Operation 9 24th June 2011 14:58
Something blocking port 53 stigge2000 Installation/Configuration 4 5th April 2011 15:46
Postfix POP request approx 30 sec (Mozilla...) dreamed Server Operation 3 16th February 2006 01:03

All times are GMT +2. The time now is 05:28.

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