Root Orchard Web.Config has this line:
On a subdir (e.g Themes/VARV/Content), there are web.configs used for serving static content. They work, BUT, are going through the pipeline.
Example – I want this to be a fast 404, it isn’t. It’s slow because it’s actually throwing a 500!
I’m struggling with this.
Inside Themes/VARV/Content Web.Config I tried overriding the setting, but it doesn’t work:
<remove name="UrlRoutingModule-4.0" />
<add name="UrlRoutingModule-4.0" type="System.Web.Routing.UrlRoutingModule" preCondition="" />
The requests still go through the pipeline. I don’t want them to!
So my question is, on the root Web.Config, if I set that runAllManagedModulesForAllRequests=false, will it cause any problems? I’ve set it to false and the site SEEMS to be working fine, but I’m not sure.
I found this recent article that does a good job explaining:
But I’m still not sure if I need to go through every Orchard Module config and set the ‘preCondition=true’, if that’s the right approach?