web-dev-qa-db-ja.com

IIS 7一致したURIのISAPIをスキップ

IIS 7で、リクエストをWebSphereアプリケーションサーバーにリダイレクトするISAPIフィルターがインストールされています。

問題は、一部のURI(サイトに画像がある一部のフォルダー)をWebSphereにリダイレクトしないようにする必要があることです。

IIS書き換えを試しましたが、ISAPIフィルターの後で実行されているようです。

一致したURIに対してISAPIフィルターをスキップするにはどうすればよいですか?または、仮想ディレクトリを構成してサイトのISAPIフィルターをスキップすることもできますか?

ありがとう!

1
Ava

WebSphereの構成を編集するのと同じくらい簡単にIIS)を介してこれを行う方法を考えることができませんでした。

WebSphereは使用していませんが、 docs は、ルートルールを使用してUriGroupを含めたり除外したりできることを示唆しています。

UriGroup 
A group of URIs that will be specified on the HTTP request line. The same application server must be able to handle the URIs. The route will compare the incoming URI with the URIs in the group to determine if the application server will handle the request. 
Following is an example of a UriGroup element and associated elements and attributes:

<UriGroup Name="Uris">
<Uri Name="/servlet/snoop"/>
<Uri Name="/webapp/*"/>
<Uri Name="*.jsp"/>
</UriGroup>

そして、これらはルーティングルールで使用されているように見えます。

Route
...
Using the information that is defined in the VirtualHostGroup and the UriGroup for the route, the plug-in determines if the incoming request to the Web server should be sent on to the ServerCluster defined in this route.

Following is an example of this element:

<Route VirtualHostGroup="Hosts" UriGroup="Uris" ServerCluster="servers/>

だから私はそのように行きます-IIS代替案は、他のWebサイト、ARR、ルーティングルールの設定を含み、...それは面倒です。除外はおそらくもっと簡単です!

1
TristanK