locked
HttpModule & web.config inheritance RRS feed

  • Question

  • User285980847 posted

    Hi, Folks -

    The web.config on the root of my set points to a HttpModule that I'm using for URL rewriting as follows:

    <system.web>

    <httpModules>

    <add name="Rewrite" type="Rewrite, App_Code"/>

    </httpModules>

    I also have wildcard mapping set up for the root in IIS so that the asp.net dll handles all requests.

    This is all working fine, but here's the problem: I have a separate app running in a virtual directory that's on the root of the other application, and requests for any asset within that directory are also being intercepted by the HttpModule that I want for the root directory only.  Is there any way I can block this intertance to other apps in subdirectories?

    TIA,

    Eric

    Tuesday, August 1, 2006 10:29 AM

All replies

  • User371668647 posted
    In your web.config for the child app, add a <remove name="Rewrite"> tag to its <httpModules> section.
    Tuesday, August 1, 2006 12:16 PM
  • User285980847 posted
    Thanks, Stiletto.  That did the trick.
    Tuesday, August 1, 2006 1:47 PM