Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an IIS 7 with an ISAPI filter installed which redirects requests to WebSphere application server.

The problem is that there is a need to not to redirect some URI's (some folders with images on site) to WebSphere.

I tried IIS rewrite but it seems to run after the ISAPI filter.

How the ISAPI filter can be skipped for a matched URI? Or may be a virtual directory can be configured to skip site's ISAPI filter?


share|improve this question

Couldn't think of a way of doing this through IIS as easily as editing the configuration for WebSphere.

I don't use WebSphere, but the docs suggest it's possible to include or exclude UriGroups using Route rules:

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"/>

And these look like they're used with the routing rules:

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/>

So I'd go that way - the IIS alternatives involved setting up other websites and ARR and routing rules and... it's just messy. Exclusions are probably simpler!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.