Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple web sites on single Windows Azure Web Sites instance

Tags:

azure

Is it possible to host multiple websites with different domain names on a single Azure Web Sites instance in shared or standard mode? If so, how does one go about doing this?

E.g., in my test instance, all requests are served up from the "site\wwwroot" directory. I would like to be able to have example.com served up from "site\example.com" and example.org served up from "site\example.org", but I don't see a way to set this up from within the online Azure management GUI. I can add both domains via "Manage Domains", but I don't see a way to have them serve out different sets of files.

Note that there are several discussions here and elsewhere about hosting multiple sites on a single Azure Cloud Services instance, but I am specifically inquiring about doing so on an Azure Web Sites instance.

like image 642
user3175864 Avatar asked Jan 09 '14 03:01

user3175864


People also ask

How do I host multiple websites on Azure VM?

If you want to share same port number for multiple websites, then please remember to specify public domain name for each site. If you don't have so much public domain and you just want to access your website via External Firewall IP address, then please set different Port number for them.

Can Azure App Service host multiple sites?

Yes, the setup is very much possible and is a common requirement. You can deploy multiple separate 'WebApps' under an 'App Service Plan'.

What is multi-site in application gateway?

Multiple site hosting enables you to configure more than one web application on the same port of application gateways using public-facing listeners. It allows you to configure a more efficient topology for your deployments by adding up to 100+ websites to one application gateway.

Can you simultaneously use application gateway for both external and internal traffic?

Can I simultaneously use Application Gateway for both external and internal traffic? Yes. Application Gateway supports one internal IP and one external IP per application gateway.


1 Answers

first you create multiple azurewebsites. Then take on AzureWebsite say site1 and then configure it for Standard mode. while configuring select all other sites in the dropdown as shown below - enter image description here

This will make all selected sites to be on that standard mode and share resources on dedicated instance.

Now to configure custom DNS for each and every site, you can do that individually for every site on Azure management portal UI. Then Azure is going to take care of mappings and will ensure that right sites will be served for right domains.

like image 186
ramiramilu Avatar answered Oct 18 '22 14:10

ramiramilu