I am using "Application Request Routing" (ARR) and URL Rewrite 2.0 to implement a reverse proxy in IIS. The server is set up like this:
- Server - no URL Rewrite rules specified, ARR Proxy enabled
- App 1 - bound to 8080 and hostname app.site.com, no URL Rewrite rules specified
- Redirect - bound to *:80 and *:443, with URL Rewrite configured for
(.*)
tohttp://localhost:8080/{R:1}
This all works fine, until I deploy a new version of "App 1" using Web Deploy. At that point an unexpected URL Rewrite rule appears in the configuration for "App 1" with the value /(.*)
, which obviously breaks everything. I also noticed that this rule is re-inserted whenever I click "Revert to Parent" in the configuration, but the parent (which I assume is the Server node) doesn't have any rules configured.
Why does this rule appear?