Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 230
Simon Needham Avatar asked Feb 20 '13 15:02

Simon Needham


2 Answers

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

like image 87
Bigs Avatar answered Sep 29 '22 05:09

Bigs


If you use Web deploy publish method you can set in Site name mydomain/mymvcsite instead of mydomain. At least it works for me for default windows azure site http://mydomain.azurewebsites.net/mymvcsite.

Or you can use FTP publish method.

like image 39
LionSoft Avatar answered Sep 29 '22 04:09

LionSoft