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

CI/CD with Jenkins — Part 2: Use Jenkins for Continuous Integration

SARIMAX — ACO Search

An Intro to Dynamic Programming, Pt. I

CS371p Spring 2022: Santi Dasari

Meet the Firm Providing Infrastructure to the World’s Biggest Blockchain Projects

Let’s Build a Reload Animation with IK

Project: Flippr Potential Play

Hybrid cloud task 3

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

Terraform Setup for AWS S3

Deploying ‘n’​ Cisco FTDv in AWS in multiple Availability Zones using Terraform

Synthetic Monitoring using AWS Canary & Cloudwatch

Create AWS Infrastructure Using Terraform