Let’s configure haproxy on AWS cloud using Ansible

  • firstly all these different web servers have different IP hence if the user want to connect to them the he would have to remember all these IP address which is not practical since some websites have thousands of servers.
  • not all web servers are busy at all times and the user would have to check the traffic on different web servers before connecting. Again this is not a very time-efficient way of managing things.

So what is the solution?

Load Balancer

Let’s do the configuration

Configuring the reverse proxy

  1. Install the haproxy server software
  2. Configure the configuration file of the haproxy
  3. Start the services

Configuring the web server

  1. download the apache web server software
  2. download the python software
  3. copy the content we want to host on the server
  4. set the permissions of these files transferred so that the user can execute them
  5. start the web server

Conclusion

--

--

--

Tech enthusiast

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Rethinking Component Libraries

My thoughts after 12 weeks of intense coding

Getting started with Meson (part 4)

Why is Test Coverage Important?

Convert Colour Space (Part 1)

Don’t bother estimating tasks/stories with your Agile team! Here is what to do instead!

Managers Should Be Technical!

What is Visual SQL (Pros and Cons)?

DashboardFox Visual SQL

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Arjun Chauhan

Arjun Chauhan

Tech enthusiast

More from Medium

Ansible Dynamic Inventory AWS

How-to setup a HA/DR database in AWS? [3 — Simple database]

Introduction to VPC Peering in AWS

Deploy AWS MySQL using Terraform