I am attempting to use an HttpModule to intercept requests to a specific directory which contains none code files (Images, Music, etc). The Module I have works except it applies to all folders not just the one I want it to apply to. I attempted to use the following code in my web.config to force it to the one location only, but it doesn't seem to work:
<location path="extraData/files">
<system.webServer>
<modules>
<remove name="staticFileSecurityModule"/>
<add name="staticFileSecurityModule" type="content.httpModules.StaticFileSecurityModule" preCondition=""/>
</modules>
</system.webServer>
</location>
The directory I want this module to be used for is /extraData/files