Application Request Routing and Proxy Chain

It is pretty common to run ARR as a proxy behind another proxy in a corporate environment and I've been asked how ARR can be configured in such an environment.   This practice is also known as "proxy chaining" where one proxy is "chained" to another proxy.

ARR supports proxy chaining.  From the server level proxy settings, you will find:

Enter the proxy that ARR should be "chained" to.  That's it!

From the configuration point of view, this setting is written out to applicationHost.config as (below is an example of ARR configuration that is configured as a forward proxy that is chained to go via myproxy):

        <rewrite>
            <globalRules>
                <rule name="ARR_server_proxy" enabled="true" patternSyntax="Wildcard" stopProcessing="true">
                    <match url="*" />
                    <action type="Rewrite" url="http://{C:0}/{R:0}" />
                    <conditions>
                        <add input="{HTTP_HOST}" pattern="*" />
                    </conditions>
                </rule>
            </globalRules>
        </rewrite>
        <proxy enabled="true" reverseRewriteHostInResponseHeaders="false" proxy="myproxy" />

2 Comments

  • Hi all , I've ARR configured with proxy chain. I've multiple url rewrite inbound rules to redirect to differente URLs.
    RULES1 redirect to www.site1.com
    RULES2 redirect to www.site2.com
    By default RULES1 and RULES2 are redirecting to www.site1.com and www.site2.com using "myproxy" defined in ARR proxy chain (as in this post)
    Is it possible to have the following situation?
    RULES1 redirect to www.site1.com via myproxy
    RULES2 redirect to www.site2.com direct

    How to realize it?

    Best regards

  • Hi all , I've ARR configured with proxy chain. I've multiple url rewrite inbound rules to redirect to differente URLs.
    RULES1 redirect to www.site1.com
    RULES2 redirect to www.site2.com
    By default RULES1 and RULES2 are redirecting to www.site1.com and www.site2.com using "myproxy" defined in ARR proxy chain (as in this post)
    Is it possible to have the following situation?
    RULES1 redirect to www.site1.com via myproxy
    RULES2 redirect to www.site2.com direct

    How to realize it?

    Best regards

Comments have been disabled for this content.