为什么 SQL Server Report Server 2005 / 2008 硬编码为 http://?
我使用 Apache 服务器作为前端平衡器。因此,我还将请求传递给 SQL Server 报表服务器。 主 URL 受 SSL 保护,因此通过 RS 的 ProxyPass 可与基本身份验证配合使用。
报表服务器有一个有趣的问题。报表服务器中的大多数链接似乎都是硬编码的 http://。对于这个问题,您单击 /reports URL 上的许多链接都会向您显示来自 Apache 前端服务器的“错误请求(无效主机名)”。
您可以浏览报告,可以打开它们,但是如果您单击顶部的根链接或查看详细信息链接来切换列表模式,则报告服务器将使用 http://yourserver/reports/... 这会导致错误。在此设置中,正确的链接是 https://。
到目前为止,非 http:// 硬编码的链接有效。
我已经在微软开了一张支持票,该票已升级到雷蒙德的开发团队。结果是……这是设计使然,无法更改。 MS 真的如此审查吗?反正。有没有人遇到同样的情况并找到解决方法来解决这个问题?
我对 Apache 配置不太熟悉,但也许有办法在 Apache 中进行 URL 重写吗?因此,如果 Apache 收到 http://myfrontendurl/reports/...
,它会将请求替换为 https://
?
I use a Apache server as frontend balancer. So I also pass requests to a SQL Server Report Server.
The main URL is SSL secured, so the ProxyPass through the RS works with basic auth.
The report server has a interesting issue. Most of the links in the report server seems to be hardcoded http://. With that issue, many links you click on the /reports URL gives you a "Bad Request (Invalid Hostname)" from the Apache front end server.
You can browse reports, you can open them, but if you click e.g. the root link on top or the view details link to switch the list mode, then the report server uses http://yourserver/reports/... which results in an error. Correct links are https:// in this setup.
Link which are not http:// hardcoded works so far.
I opened a support ticket at Microsoft already which escalated to redmond to the dev team. The result was... this is by design and can't be changed. Is MS really so censored? Anyway. Did anyone face the same situation and got a workaround to fix that?
I am not that familiar with Apache config, but maybe is there a way to do a URL rewrite within the Apache? So if the Apache gets an http://myfrontendurl/reports/...
it replaces the request with https://
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我建议从 Reporting Services 配置工具停用 http 访问,然后看看会发生什么。
I'd recommend deactivating the http access from the Reporting Services Configuration tool and seeing what happens.