0% found this document useful (0 votes)
8 views6 pages

ALB Using Path

Two Ubuntu EC2 instances were created with Nginx configured on Instance-1 and Apache2 on Instance-2. Each instance has a separate application directory (/app1 and /app2) where the index.html files were moved. An Application Load Balancer was set up with two target groups for health checks, allowing access to both applications via their respective URLs.

Uploaded by

tirumala phanish
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views6 pages

ALB Using Path

Two Ubuntu EC2 instances were created with Nginx configured on Instance-1 and Apache2 on Instance-2. Each instance has a separate application directory (/app1 and /app2) where the index.html files were moved. An Application Load Balancer was set up with two target groups for health checks, allowing access to both applications via their respective URLs.

Uploaded by

tirumala phanish
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Created 2 Ubuntu EC2 Instances

Configured Nginx in Instance-1


Configured Apache2 in Instance-2

Logged into instance-1

cd /var/www/html

mkdir /app1

mv [Link] /app1
Logged into instance-2

cd /var/www/html

mkdir /app2

mv [Link] /app2

Configured 2 Target Groups for each instance


Added /app1 to 1st Target Group and /app2 to 2nd Target Groupin HTTP: Health checks
Now Created Application Load Balancer and added 2 Target Groups into it

In rules added /app1/* and /app2/*


Now copy DNS and go to web browser pastedns/app1 and pastedns/app2 check you will get the
output.

App1:

App2:

You might also like