none
Rewrite Outbound Rules Doesn't Work, HTTP/1.1 500 URL Rewrite Module Error. RRS feed

  • 问题

  • here is the scenarios:

     there are a sharepoint web server 2010, deployed on the Windows server 2008 R2. and also have a cache server with ARR 2.5 and URL Rewriter 2.0 installed.

    Web Server:wswfesm1.net

    Cache Server: ukwtsvulm640.net

    All request to cache server ukwtsvulm640.net would be rewrite to Web Server wswfesm1.net, but some of url would not be rewritten successfully, it still output the webserver url,  http://wswfesm1.net/*****, not thehttp://ukwtsvulm640.net/*****. so I added the outbound rules, but it failed ,HTTP/1.1 500 URL Rewrite Module Error. does anyone of you have such experience and give your resolution to this?

        <proxy enabled="true" />
            <rewrite>
                <rewriteMaps>
                    <rewriteMap name="ReverseProxyMap">
                        <add key="ukwtsvulm640" value="wswfesm1.net" />
                        <add key="ukwtsvulm640.net" value="wswfesm1.net" />                   
                    </rewriteMap>         
                </rewriteMaps>
                <globalRules>
                    <rule name="Rewrite rule1 for ReverseProxyMap" stopProcessing="true">
                        <match url=".*" />
                        <conditions>
                            <add input="{ReverseProxyMap:{HTTP_HOST}}" pattern="(.+)" />
                        </conditions>
                        <action type="Rewrite" url="http://{C:0}/{R:0}" appendQueryString="true" />
                    </rule>           
                </globalRules>
                <outboundRules>
                    <rule name="Outbound Rule" preCondition="*" enabled="true" stopProcessing="true">
                        <match filterByTags="None" pattern="(.*)wswfesm1\.net(.*)" />
                        <action type="Rewrite" value="{R:1}ukwtsvulm640.net{R:2}" />
                    </rule>               
                    <preConditions>
                        <preCondition name="*" patternSyntax="Wildcard">
                            <add input="{ALL_HTTP}" pattern="*" />
                        </preCondition>
                    </preConditions>
                </outboundRules>
            </rewrite>

    2012年1月13日 7:58