How to avoid deploying ASP.NET MVC3 application in subpath on IIS 7.5

强颜欢笑 提交于 2019-12-25 03:29:24

问题


When I deploy an ASP.NET MVC3 application to an IIS 7.5 on WindowsServer 8RC2 it is only accesible under this url: mydomain.com/mvcsite instead of just mydomain.com

I am using MSDeploy to install the app from deployment package built in visual studio.

On the IIS I have a website configured and inside this an Application named 'mvcsite'.

Do I need Url rewriting to make this work or can some default root path be configured in the IIS 7.5?


回答1:


In the Advanced settings of the site (right click on the site -> Manage Web Site -> Advanced Settings...), you can change the Physical path to the path where your mvcsite application resides.




回答2:


It turned out that I just had to create a website without creating an application beneath.



来源:https://stackoverflow.com/questions/11912449/how-to-avoid-deploying-asp-net-mvc3-application-in-subpath-on-iis-7-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!