完全切断 web.config 继承
我们希望将 support.aaa.com 下的现有站点迁移到 www.aaa.com/support。然而,现有的根级网站是 ASP.Net,支持网站是基于 ASP.Net MVC 的。后面的 Web.config 与根 web.config 的设置有冲突。遗憾的是,这些设置不能简单地使用位置标签来覆盖。有什么办法可以做到吗?
我确定的唯一解决方案是使用反向代理将 /support 流量路由到 support.aaa.com
谢谢
We're looking to relocate an existing site located under support.aaa.com to www.aaa.com/support. However, the existing root level web site is ASP.Net and the support web site is ASP.Net MVC based. The later Web.config has conflicting setting with the root web.config. Sadly these settings cannot be simply overridden using a location tag. Is there any way it could be done?
The only solution I've identified is using a reverse proxy to route the /support traffic to support.aaa.com
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 InheritInChildApplications 属性 这对您有帮助吗?
You could stop the configuration from cascading down in the parent configuration with the InheritInChildApplications Property if that's any help to you?