Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

Thanks!

share|improve this question

1 Answer 1

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:

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>

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

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

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

 
discard

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.