Is it possible to deploy multiple web applications to a single Linux Web app??

Surya maroju 1 Reputation point

Hi All,

We have a scenario where the my two applications -
app1 requires three war files to be deployed to run on the web app.
app2 requires a single war file to run.

When I deployed app1 with 3 war files onto the web app, it created three folders for 3 war files in the wwwroot/webapps/ directory.

Now the folder structure will be:


and now I want to deploy the app2 war file onto the same web app but it should not create another folder in the above directory.

As I am using Linux web app, path mapping of virtual application option is not available.

there is any other way to do this?? by avoiding the additional folder creation?

Azure App Services
Azure App Services
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,329 questions
No comments
{count} votes

2 answers

Sort by: Most helpful
  1. sadomovalex 3,591 Reputation points

    not sure is it possible without creation of additional folder. If go with additional folder - you may try to create app-level folders:
    and put content under them. But in this case urls of your web apps will be changed from to and If you need own domain names for both apps it may be fixed by url rewrite ( ->, -> e.g. like described here: http Redirect an azure web application.

    No comments

  2. brtrach-MSFT 6,486 Reputation points Microsoft Employee

    @Surya maroju This scenario came up two weeks ago in our meeting with the web apps product group. Their response was that running multiple sites in a single web app was not officially supported. As @sadomovalex pointed out, there might be unofficial methods to achieve this but as with anything unofficial, you run the risk of it breaking in future updates as it's not a scenario that will be validated during testing.

    You can run multiple web apps in a single app service plan at no additional costs., which was the recommended approach by the product group.

    No comments