Don’t just try to understand it. Feel it.

Load balancing using Nginx

In this article let’s discuss how to do a layer 7 (Application layer) load balancing using Nginx on a local machine with multiple servers, serving the same content. Before I dive into the details, for those who don’t know what Nginx is

NGINX is a free, open-source, high-performing, rich feature set, simple configuration, and low resource consumption web server which can also act as a reverse proxy, load balancer, mail proxy, HTTP cache and many more.

Step 1: Install and Run Nginx

I’m using brew to install Nginx on my machine.

brew install nginx

Check whether it is successfully installed or not.

nginx -v

You should…

Nginx Domain Configuration

In this article, we will discuss how to configure multiple domains with Nginx. If you’ve not purchased any domain yet you can purchase from a domain registration site like Godaddy. There are two steps to configure multiple domains. Feel free to skip if you’re familiar with any one of the steps.

  • DNS Configuration
  • Nginx Configuration

DNS Configuration

Open AWS console and search for Route53 in find services. Open Route53 and click on hosted zones. I already have a few domains configured.

This article will help you in automating your deployments with bitbucket pipelines. Feel free to skip if you’re aware of any one of the steps. Let's break down the process into the following steps.

  • Create a Bitbucket repository
  • Create an EC2 Instance
  • Authenticate Ec2 and Bitbucket

Create a Bitbucket repository

Let's create a classic hello world program in the repository😂

Prathap Chandra

SDE at 2gethr

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