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
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/.*$

<?xml version="1.0"?>
        <section name="managedFusion.rewriter" type="ManagedFusion.Rewriter.Configuration.ManagedFusionRewriterSectionGroup" requirePermission="false"/>
    <managedFusion.rewriter xmlns="http://managedfusion.com/xsd/managedFusion/rewriter">
        <rules engine="Apache"/>            
        <compilation debug="true">
        <authentication mode="Windows"/>
            <add name="RewriterModule" type="ManagedFusion.Rewriter.RewriterModule, ManagedFusion.Rewriter"/>
            <add name="RewriterModule" type="ManagedFusion.Rewriter.RewriterModule, ManagedFusion.Rewriter"/>
        <validation validateIntegratedModeConfiguration="false"/>
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?