Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm having trouble with setting up a reverse proxy outbound URL redirect in IIS 7 with ARR. The domain has 2 inbound URL rewrites and 1 outbound URL rewrite. The inbound ones work fine and I haven't seen any problems with them.

However the outbound redirect seems to crash the application pool every time it is enabled. And it will keep crashing until I disable the outbound rule. I think it might be some kind of loop in my redirects but I'm not sure. I'm not too familiar with regex myself and I haven't been able to find much from searching online.

Here are the 2 inbound redirects that work:

<rule name="Rule1" enabled="true" stopProcessing="false">
                <match url="^blog/$" />
                    <set name="HTTP_ACCEPT_ENCODING" value="0" />
                    <set name="HTTP_X_FORWARDED_HOST" value="domain.com" />
                <action type="Rewrite" url="http://blog.domain.com" appendQueryString="True" />
            <rule name="Rule2" enabled="true" stopProcessing="false">
                <match url="^blog/(.*)" />
                    <set name="HTTP_ACCEPT_ENCODING" value="0" />
                    <set name="HTTP_X_FORWARDED_HOST" value="domain.com" />
                    <set name="HTTP_X_FORWARDED_FOR" value="{REMOTE_ADDR}" />
                <action type="Rewrite" url="http://blog.domain.com/blog/{R:1}" appendQueryString="True" />

And here is the outbound rule that causes the app pool to crash when it is enabled:

<outboundRules rewriteBeforeCache="true">
            <rule name="outRule1" preCondition="isHtml" enabled="false" stopProcessing="false">
                <match filterByTags="A" pattern="^http(s)?://blog.domain.com/blog/(.*)" />
                <action type="Rewrite" value="http{R:1}://www.domain.com/blog/{R:2}" />
                <conditions logicalGrouping="MatchAll">
                <preCondition name="isHtml">
                    <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />

Any help is much appreciated.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.