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.
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With