Nginx is one of the most famous web servers in the today’s market which provides a set of features that the Enterprise can utilize to scale out the infrastructure. Today, we are going to focus on installing Nginx on Ubuntu, setting it up as a reverse proxy and to load balance (high availability) with Keepalived. I have done a similar article for HAProxy some time back (if you are interested check this link). Without further ado let’s jump into the installation of Nginx. In order to complete the following tutorial, you will need two servers/nodes and a floating IP/virtual IP. Further, if you don’t intend to set up a HA cluster you can direct yourself to part 02 of the tutorial.

Part 01 : Load Balancing

Step 01: Install Nginx

SSH to the node 01 and get root access or go with sudo. The below command will get an update of the packages. Read more here.

Let’s install Nginx now.

Now you have a Nginx server up and running. Go to the browser and type your IP and see. You should get the below output.

nginx node 01

– Read More –