我是新手在IIS 7.5上设置URL重写和反向代理 . 我有两台服务器 . 服务器1,我已经安装了url重写和应用程序请求路由缓存 . 在端口8082上的服务器1上设置一个站点,在端口8080上设置在服务器2上设置的其他站点(使用DNS名称) . 当我从服务器1访问服务器2上的站点时,它不显示图像和CSS .

我复制并粘贴重写规则 . 如果我需要更正规则,请告诉我

我的网站结构是default.aspx重定向到Login文件夹中的登录页面CSS / js文件位于内容\ CSS内容\ js中

<rule name="Reverse Proxy to payroll" stopProcessing="true">
        <match url="^payroll/(.*)" />
        <action type="Rewrite" url="http://localhost:8082/{R:1}" />
    </rule>

<rule name="Reverse Proxy to XYZ" stopProcessing="true">
        <match url="^XYZ/(.*)" />
<conditions>
    <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />  
    <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />  
            <add input="{URL}" pattern="\.axd$" negate="true" /> 
</conditions> 
        <action type="Rewrite" url="http://test.XYZ.com:8080/{R:1}" />
                <serverVariables>
                    <set name="ORIGINAL_HOST" value="{HTTP_POST}" />
                </serverVariables>
    </rule>
</rules>
<outboundRules>
    <rule name="Add application prefix" preCondition="IsHTML">
        <match filterByTags="A, Form, Frame, IFrame, Img" pattern="^/(.*)" />
        <conditions>
                    <add input="{URL}" pattern="^/(payroll|XYZ)/.*" />
        </conditions>
        <action type="Rewrite" value="/{C:1}/{R:1}" />
    </rule>
            <rule name="Rewrite Location Header" preCondition="IsRedirection">
                <match serverVariable="RESPONSE_Location" pattern="^http://[^/]+/(.*)" />
                <conditions>
                    <add input="{ORIGINAL_HOST}" pattern=".+" />
                    <add input="{URL}" pattern="^/(XYZ)" />
                </conditions>
                <action type="Rewrite" value="http://{ORIGINAL_HOST}/{C:1}/{R:1}" />
            </rule>
     <rule name="Rewrite image URLs in CSS response" preCondition="IsCSS">
        </rule>
    <preConditions>
        <preCondition name="IsHTML">
            <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
        </preCondition>
                <preCondition name="IsRedirection">
                    <add input="{RESPONSE_STATUS}" pattern="3\d\d" />
                </preCondition>
     <preCondition name="IsCSS">
                <add input="{RESPONSE_CONTENT_TYPE}" pattern="text/css" />
            </preCondition>
    </preConditions>
</outboundRules>