Introduction
Sometimes it becomes necessary to run multiple applications in a single application server. In this post, we will show how to host multiple applications in a single Azure Web App.
How?
The folder structure of an Azure App service is like / (root) -> Site -> wwwroot. The actual application resides on the wwwroot folder and we publish on that folder.

The idea is to create new folders according to your requirement and make that an application like IIS. So, let’s say we have a car website and we have to show the interior and exterior of the car with two different applications.

Now go to your Azure portal (https://portal.azure.com). Go to the web app and search for “Configuration” in the left side search box of the web app. It will be under the “Settings” section.

Click on the “Configuration” and go to “Path mapping”.

In the path mapping blade, you will find the “Virtual application and directories” tab.


Now upload the content/application on the specific folders either via FileZilla or Visual Studio publishing profile.

Now using this technique, you can host as many applications as you want.
Summary
In this article, we learned about hosting multiple applications in a single Azure App Service.

Felix LPosted Mar 2, 2023, 7:57 AM
Hi Arkadeep, When I deploy two web applications to the same app service, only one appliation is working, the other one doesn't run. It says "Select a different application pool to create another application". Any suggestions? Thanks.
Roger HopkinsPosted Sep 8, 2021, 3:21 PM
I'm not able to connect to the subfolder in Filezilla. I'm able to connect to the remote site root directory (i.e. /site/wwwroot) but when I type in the subfolder path (i.e. /site/wwwroot/common) I get: Response: 550 The system cannot find the file specified. Error: Failed to retrieve directory listing
Aayush ShresthaPosted May 25, 2021, 3:45 PM
Can you configure connection strings for each website in this type of setup? I understand that you can have a web.config file at the root level of each site but I have secrets that are unique for each site and I don't want to store them in raw text so having a way to store sensitive connection strings / keys in azure would be ideal. Any ideas?
Bill SpangPosted May 14, 2021, 5:58 PM
Question and Recommendation: I have a Client that has two separate Teams developing Web and Mobile Apps. What is the best method to host all Apps in a single Azure Web Service?I was with the impression that I could create a Virtual Folder for each App to facilitate this. The apps are accessible while including the azurewebsites domain in the URL, but the Apps are not accessible without it. For example, I want to call https://mydomainname.com/virtualfoldername What am I not understanding? Many thanks for your assistance!
HARISH DARNEPosted Apr 25, 2021, 7:10 AM
Do we have to build the dist folder of interior and exterior with target URL as ""http://<your web app url>/<virtual directory name>"" ?
Jorge Nicolas GonzalezPosted Nov 17, 2020, 9:41 AM
What happen if i want to set totaly diferent domine to each one? like www.app1.com and www.app2.com etc? can I do that?
KarlPosted May 15, 2020, 7:38 AM
Not working for me, with NodeJs on App Services (Azure - Windows or Linux) :(
Moynul BiswasPosted Apr 15, 2020, 2:41 AM
Thanks , You done a good job