有没有人通过在 IIS 7.5 ASP.NET 应用程序的虚拟目录中建立的 URL 重写使用反向代理从另一台服务器检索 SSRS 报告?
SSRS 报告可以使用网络浏览器通过浏览到报告的 URL 从网络服务器查看,因此可访问性没有问题。SSRS 报告确实提示输入凭据,因此这可能是一个问题,但我想知道为什么凭据请求不会是发送回浏览器的 HTTP 请求的一部分。
位于“ssrs”虚拟目录中的 URL 重写配置如下所示:
<?xml version="1.0" encoding="UTF-8"?>
 <configuration>
  <system.webServer>
    <rewrite>
        <outboundRules>
            <rule name="ReverseProxyOutboundRule1" preCondition="ResponseIsHtml1">
                <match filterByTags="A, Form, Img" pattern="^http(s)?://http://123.45.678.194/(.*)" />
                <action type="Rewrite" value="http{R:1}://website.address.com/{R:2}" />
            </rule>
            <preConditions>
                <preCondition name="ResponseIsHtml1">
                    <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
                </preCondition>
            </preConditions>
        </outboundRules>
        <rules>
            <rule name="ReverseProxyInboundRule1" stopProcessing="true">
                <match url="(.*)" />
                <conditions>
                    <add input="{CACHE_URL}" pattern="^(https?)://" />
                </conditions>
                <action type="Rewrite" url="{C:1}://http://123.45.678.194/{R:1}" />
            </rule>
        </rules>
    </rewrite>
  </system.webServer>
 </configuration>
当我浏览到https://website.address.com/ssrs/Reports/Pages/Report.aspx?ItemPath=%2fSSRSReport时收到的错误是 502 - Web 服务器在充当网关或代理服务器时收到无效响应。
您要查找的页面有问题,无法显示。当 Web 服务器(作为网关或代理)联系上游内容服务器时,它收到了来自内容服务器的无效响应。
我感谢可以提供的任何帮助。