将ASP.net MVC网站部署到Azure网站的子文件夹吗? [英] Deploy an ASP.net MVC website to a subfolder of an Azure website?

查看:84
本文介绍了将ASP.net MVC网站部署到Azure网站的子文件夹吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个asp.net mvc网站,希望将其部署到Azure(最好通过GitHub部署),以便可以将其作为主域的子文件夹进行访问.

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.

例如 http://example.com/mymvcsite/

理想情况下,我希望网站在子文件夹下完全独立.好像它被配置为一个很好的老式IIS应用程序文件夹.也就是说,我不想为mydomain.com建立一个域名mvc网站,而该网站恰好在/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.

我很高兴将整个网站托管在Azure上,让这个特定项目位于子文件夹下是很有意义的.

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.

推荐答案

您可以转到Azure的控制面板并添加虚拟目录路径.

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

请访问此MDSN博客以了解其效果.

Please visit this MDSN blog to see how its done.

查看全文

登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆