底线:有没有办法让绑定的 IIS 站点的子路径通过直接绑定在 http.sys 中的非 IIS 应用程序?
我在 Windows Server 2008 上使用 IIS 7.5。我有一个绑定到特定根 url 的现有 IIS 站点,比如说fooapps.bar.com
。该站点下面有几个应用程序和目录。这一切都很好。问题是我现在想允许一个子路径fooapps.bar.com
传递到另一个直接向 http.sys 注册自身的服务,而不是 IIS 应用程序。
因此,该服务将自身与 http.sys 绑定在fooapps.bar.com/Services
. 如果我停止绑定到 的 IIS 站点,则http.sys 绑定服务会成功接收和处理fooapps.bar.com
对的请求。fooapps.bar.com/Services
但是,如果 IIS 站点正在运行,那么所有请求fooapps.bar.com/Services/*
都会被 IIS 拦截并返回错误,因为在相应的物理路径上实际上没有任何内容。我怎样才能告诉 IIS 完全忽略fooapps.bar.com/Services
,而是让对该路径的请求通过 http.sys 中绑定的任何其他内容?
fooapps.bar.com (site)
+ Files (normal directory with static .html files)
+ SomeApp1 (application)
+ SomeApp2 (application)
+ nuget
+ Feed1 (application)
+ Feed2 (application)
+ Feed3 (application)
+ Services (??? How to make this pass through to separate http.sys binding?)