【发布时间】:2017-03-13 19:40:33
【问题描述】:
我有一个通用的 Web 应用程序正在运行 http://sites.acme.com。
我想添加一个子站点@987654322@。
过去要添加新的子站点(SubSite1),我们只需将项目从 VS 发布到该文件夹 Sites/SubSite1 的子文件夹中,然后编辑 Sites 的 web.config 并添加:
<location path="SubSite1">
<system.webServer>
<defaultDocument enabled="true">
<files>
<clear/>
<add value="index.aspx"/>
</files>
</defaultDocument>
</system.webServer>
</location>
现在,试图发布一个没有 aspx 页面的 mvc 网站,我试图弄清楚如何让 IIS 识别它需要点击 SubSite1.dll 才能启动主控制器,并让 index.cshtml 返回。
我需要在网站的网络配置中编辑任何配置吗?
【问题讨论】:
标签: asp.net-mvc iis