« Previous Next »

Thread: Did ARR v2 RC break my URL Rewrite Rule custom serverVariables?

Last post 09-28-2009 11:26 AM by ISO3200. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 09-28-2009, 1:19 AM

    • ISO3200
    • Not Ranked
    • Joined on 08-31-2009, 2:49 AM
    • Posts 8

    Did ARR v2 RC break my URL Rewrite Rule custom serverVariables?

    <rule name="Reverse Proxy to some other domain" stopProcessing="false">
                <match url="^(.*)" />
                <action type="Rewrite" url=http://someotherdomain.com/{R:1} />

    <serverVariables>

    <set name="HTTP_SOME_CUSTOM_HEADER" value="FOO_BAR" replace="true" />

        </serverVariables>

            </rule>

    This no longer works; I'm getting a 500 error.  I had to comment out my <set> tags to get this to work.

    I already had an issue with this (here) in a separate post that I had to work around using a managed IHttpModule.  Any ideas?

  • 09-28-2009, 11:11 AM In reply to

    • wonyoo
    • Top 50 Contributor
    • Joined on 12-15-2007, 6:46 PM
    • Posts 125

    Re: Did ARR v2 RC break my URL Rewrite Rule custom serverVariables?

    ARRv2 RC is shipped with URL rewrite v2 RC1.  As a part of security feature, in URL rewrite v2 RC1, you have to explicitly manage the allow and deny list.  The documentation on this is at http://learn.iis.net/page.aspx/686/setting-http-request-headers-and-iis-server-variables/

  • 09-28-2009, 11:26 AM In reply to

    • ISO3200
    • Not Ranked
    • Joined on 08-31-2009, 2:49 AM
    • Posts 8

    Re: Did ARR v2 RC break my URL Rewrite Rule custom serverVariables?

    Thanks!  Adding my variable to the list fixed it.

Page 1 of 1 (3 items)
Microsoft Communities