完全切断 web.config 继承

发布于 2025-01-01 00:51:25 字数 241 浏览 8 评论 0原文

我们希望将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

百思不得你姐 2025-01-08 00:51:25

您可以使用 InheritInChildApplications 属性 这对您有帮助吗?

You could stop the configuration from cascading down in the parent configuration with the InheritInChildApplications Property if that's any help to you?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文