I've got a custom Http module which adds a header to the request depending on the content of the request. This header should be used to rewrite the URL with UrlRewrite rules.
Now my problem is, that my custom HTTP module gets executed after the UrlRewrite module.
I've already removed and added the HTTP module after the customer HTTP module in web.config.
<system.webServer>
<modules>
<remove name="RewriteModule"/>
<add name="CustomHeaderSetter" type="ProxyTest.CustomHeaderSetter, ProxyTest" />
<add name="RewriteModule"/>
</modules>
</system.webServer>
Is there a way to run HTTP modules in a specific order?
Or do I have another option to intercept the request before UrlReqrite?