13

I am looking to migrate an MVC website to Azure web sites. My current set up in IIS is as follows:

Main MVC site -> www.thesite.com (physical path = wwwroot/thesite)
WordPress blog for the site -> www.thesite.com/blog (physical path = wwwroot/thesiteblog)

These are two separate projects on my end. They exist in separate directories within wwwroot. On the Main MVC site, I configured a virtual directory to point www.thesite.com/blog to wwwroot/thesiteblog.

Is it possible to replicate this behavior using Azure web sites? I see there are configuration options for virtual applications and directories, but they only seem to allow pointing to other places withing the same web site. Ideally, Id like to create 2 Azure web sites, and have the /blog subdirectory of web site #1 point to the root of web site #2. I do not wish to incorporate the code from site #2 into site #1, but I would if I find that is my only option.

I cannot be the only one out there who has had this need before, yet I am having a hard time finding any current information about how to go about doing this. Any thoughts out there?

Gadget27
  • 544
  • 5
  • 14
  • do you want them to run in 2 separate w3wp.exe? or do you just want them to be in 2 separate projects? because the former isn't possible, but the latter is. – ahmelsayed Feb 22 '14 at 21:53
  • Currently, I'm just interested in keeping the two projects separate, and configured as 2 individual Azure web sites. – Gadget27 Feb 22 '14 at 21:55
  • Is this still a feature. I'm having trouble finding the documentation. –  Nov 16 '18 at 18:37

1 Answers1

8

You can keep them in 2 separate projects and use the virtual directories and applications settings in Azure to publish the 2 different projects under the same site. They will run under the same application pool because in Azure currently there is a 1:1 mapping between websites and application pools. For how to, check my answer here

ahmelsayed
  • 7,125
  • 3
  • 28
  • 40
  • 1
    I have 2 (Parent - 2.0 and child-4.5) web applications are built upon different .Net versions. Use of 1 single app pool is the reason this setup is not working. Any suggestions how I can get 2 different .Net version based web apps to go under the same Azure webapp ? – Sangeet Apr 07 '16 at 04:26