In previous post we deployed Application gateway.In this one we’ll host multiple sites on 2 test VM’s: app1 and app2
We need first to map Application gateway’s public IP to our DNS (GoDaddy in my case)
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
Then i simulated images site on app1 machine
and text site on app2
Creating Backed pool for image site
On application gateway properties click on Backed Pools-Add
Under targets specify Virtual machine and add app1
Creating backed pool for textiles site
Same as for above, just name is different
Creating listeners
On Application gateway properties click on Listeners-Multi-site
For text site
For imagesite
Creating Rules
On Application gateway properties click rules-Basic
We should be able now to reach text.astrahome.xyz
and images.astrahome.xyz
Whether we will able to host 2 separate public websites using a single Azure Application Gateway and Public IP. example with public DNS ABC.com and XYZ.COM
LikeLike