How to Setup High-Availability Load Balancer with ‘HAProxy’ to Control Web Server Traffic

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Babin Lonston

I'm Working as a System Administrator for last 10 year's with 4 years experience with Linux Distributions, fall in love with text based operating systems.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

28 Responses

  1. Alexa says:

    What will be the www “A” record for my website is it haproxy IP ? or among 4 webserver IP. I am little bit confuse.

  2. helwie ahmad says:

    Nice tutorial, I have request for next tutorial about haproxy. how to force redirect when visitor try access http url redirect to https url, how to configuring to increase secure haproxy and how to tune that tool, the last.

    how to upgrade/update to the latest version of haproxy in centos 7 which is that os use 1.5 veersion. thanks in advanced

  3. Sagar says:

    Nice document, can you share best practices for HAProxy on Linux.

  4. helwi says:

    how to install the latest version of haproxy? its possible?

  5. vincent says:

    how to access load balancer using url instead of ip ?

    • Bobin Lonston says:


      Just you need to have a valid DNS entry.

      And your hostname/IP A, AAA, PTR record should be created in DNS Server.

      Thanks & Regards,
      Bobin Lonston

  6. Marcos says:

    Can we add another HA Proxy Server? To make it a distributed system?

  7. Marinel says:

    this is not High availability setup.. LB doesnt have a failover

  8. Anand says:

    What happens if HAProxy server not ping at any situation?…

Leave a Reply to Alexa Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.