.netasp.net-mvcazureazure-web-app-service

Deploy an ASP.net MVC website to a subfolder of an Azure website?


I have an asp.net mvc website that I'd like to deploy to Azure (preferably via GitHub deployment) so that it's accessed as subfolder of the main domain.

e.g. http://example.com/mymvcsite/

Ideally I'd like the website to be completely self-contained under the subfolder. As if it was configured to be a good old-fashioned IIS application folder. Ie I don't wanty to build a domain mvc website for mydomain.com that just happens to do all it's business under the /mymvcsite/ subfolder path.

I'm quite happy for the entire website to be hosted on Azure, it just makes sense for this particular project to live under a subfolder.

I've been struggling and googling today, trying to figure out how to go about this and have come up blank.


Solution

  • You can just go to azure's control panel and add in a virtual directory path.

    Please visit this MDSN blog to see how its done.

    http://blogs.msdn.com/b/kaushal/archive/2014/04/19/microsoft-azure-web-sites-deploying-wordpress-to-a-virtual-directory-within-the-azure-web-site.aspx