question

eg1995-5273 avatar image
0 Votes"
eg1995-5273 asked BruceZhang-MSFT edited

websites on azure

hi community,
i have 2 seperate questions related to hosting web apps on azure and using application gateway:

1) normally on one VM, i can create multiple websites on IIS. for example, having a website of contoso.com and another one of test.com. and i can map the public IP to these domain names and i can access externally. what will happen if i want to add an azure app GW infront of this VM because i have one backend pool with 2 sites on the same VM. i have to create a multisite listener and add the same backend pool twice or what is the procedure?

2) regarding azure app service, can i also host 2 different websites on on azure app service? upload 2 different websites?
and again if is feasible what would be the approach of app GW here too?

thanks fir the support




azure-webappsazure-application-gatewayazure-virtual-machines-networking
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AlanKinane avatar image
0 Votes"
AlanKinane answered

Hi, Yes App Service Plans can host multiple web apps/sites and the process for application gateway is the same for both.

The app gateway itself just has a single public IP address but you can have a multi-site listener to your backend pool which can host multiple sites. Typically, you will use host headers to forward the traffic to the correct web app/site. See here for more details:

https://docs.microsoft.com/en-us/azure/application-gateway/multiple-site-overview

187757-image.png



This is a link for the tutorial for setting this up: https://docs.microsoft.com/en-us/azure/application-gateway/create-multiple-sites-portal


image.png (55.2 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.