Configure Application gateway for hosting multiple sites

Posted: June 19, 2018 in Azure

In previous post we deployed Application gateway.In this one we’ll host multiple sites on 2 test VM’s: app1 and app2

 

1.PNG

 

We need first to map Application gateway’s public IP to our  DNS (GoDaddy in my case)

 

12

 

I’ll simulate publishing of 2 sites.My domain is astrahome.xyz

so i created 2 host (A) records:

images.astrahome.xyz

text.astrahome.xyz

 

2

Then i simulated images site on app1 machine

3.PNG

 

and text site on app2

4

 

Creating Backed pool for image site

On application gateway properties click on Backed Pools-Add

Under targets specify Virtual machine and add app1

5.PNG

 

Creating backed pool for textiles site

Same as for above, just name is different

 

6.PNG

 

Creating listeners

 

On Application gateway properties click on Listeners-Multi-site

 

7.png

For text site

 

9.PNG

 

For imagesite

 

8.PNG

 

Creating Rules

On Application gateway properties click rules-Basic

 

9-1.png

 

 

9-2.PNG

 

 

9-3

We should be able now to reach text.astrahome.xyz

 

10.PNG

and images.astrahome.xyz

11.PNG

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s