OutRewriteRule not working for Specific Domian

Topics: Reverse Proxy, Rules
Apr 29, 2014 at 2:05 PM
Edited Apr 29, 2014 at 2:08 PM
I’m Using managed fusion rewriter to proxy our content and with OutRewriteRule we are changing the proxy content. Everything works fine in IIS 6.0 until we upgraded our server. After we moved our content to IIS 7.5, we are able to get the proxy content which is also been hosted in IIS 7.5. But the problem we are facing is not able to change/replace the response content using OutRewrite rule.


I'm having trouble replacing proxy content for one of our subdomains say Canada.abc.com, if I change the url to www.abc.com everything is working fine. I was wondering whether I'm doing something wrong or if it could be bug perhaps.
Below is my config and rewrite module
__ManagedFusion.Rewriter.txt__
RewriteEngine on
## Logging
RewriteLogLevel 9
RewriteLog "D:\Documents and Settings\ErikJan\Mijn documenten\Visual Studio 2010\Projects\RewriteWebAppTest1\RewriteWebAppTest1\App_Data\rewrite.log"
RewriteBase /
# any file that exists just return it
RewriteRule ^/cl/(.*)   http://canada.abc.com/$1 [QSA,P]
# Modify content of rewritten URLs
OutRewriteCond %{PATH_INFO} ^/cl/.*$
OutRewriteRule src\s*=\s*([\'\"])/(?!cl)    src=$1/cl/
OutRewriteCond %{PATH_INFO} ^/cl/.*$
OutRewriteRule SRC\s*=\s*([\'\"])/(?!cl)    src=$1/cl/
OutRewriteCond %{PATH_INFO} ^/cl/.*$

__web.config__
<?xml version="1.0"?>
<configuration>
    <configSections>
        <section name="managedFusion.rewriter" type="ManagedFusion.Rewriter.Configuration.ManagedFusionRewriterSectionGroup" requirePermission="false"/>
    </configSections>
    <managedFusion.rewriter xmlns="http://managedfusion.com/xsd/managedFusion/rewriter">
        <rules engine="Apache"/>            
    </managedFusion.rewriter>
    <appSettings/>
    <connectionStrings/>
    <system.web>
        <compilation debug="true">
        </compilation>
        <authentication mode="Windows"/>
        <httpModules>
            <add name="RewriterModule" type="ManagedFusion.Rewriter.RewriterModule, ManagedFusion.Rewriter"/>
        </httpModules>
    </system.web>
    <system.webServer>
        <modules>
            <add name="RewriterModule" type="ManagedFusion.Rewriter.RewriterModule, ManagedFusion.Rewriter"/>
        </modules>
        <validation validateIntegratedModeConfiguration="false"/>
    </system.webServer>
</configuration>
The difference I found in the header of the above two request is Canada.abc.com contains “Vary: Accept-Encoding” in it. Does this mean anything?
Can someone help us to dig out the cause for this issue?