組態檔中的 URL (SSRS 組態管理員)URLs in Configuration Files (SSRS Configuration Manager)

Reporting ServicesReporting Services 會將應用程式設定儲存在 RSReportServer.config 檔案中。stores application settings in a RSReportServer.config file. 在這個檔案中,URL 和 URL 保留項目都有組態設定。Within this file, there are configuration settings for both URLs and URL reservations. 這些組態設定的用途與修改規則大不相同。These configuration settings have very different purposes and rules for modification. 如果您習慣修改組態檔來微調部署,本主題將可幫助您了解每一個 URL 設定的使用方式。If you are accustomed to modifying configuration files to tune a deployment, this topic can help you understand how each URL setting is used.

RSReportServer.config 檔案中的 URL 設定URL Settings in RSReportServer.config File

Reporting ServicesReporting Services 會儲存 URL 以供應用程式和報表存取,並可將 Web 前端元件連接到後端報表伺服器。stores URLs for application and report access, and to connect Web front-end components to a back-end report server.

供應用程式存取的 URLURLs for Application Access

URL 是用來存取報表伺服器 Web 服務和報表管理員。URLs are used to access the Report Server Web service and Report Manager. 若要設定 URL,您必須使用 Reporting Services 組態工具。To configure the URLs, you must use the Reporting Services Configuration tool. 此工具會在 HTTP.SYS 中建立每一個應用程式的 URL 保留項目,並將 URL 的項目加入 RSReportServer.config 的 URLReservations 區段。The tool creates the URL reservations for each application in HTTP.SYS and adds entries for the URLs in the URLReservations section of RSReportServer.config.

供報表存取的 URLURLs for Report Access

Reporting ServicesReporting Services 包含一個報表伺服器電子郵件傳遞延伸模組,可用來傳送報表連結或附加檔案。includes a report server e-mail delivery extension that you can use to send report links or attachments. 當傳遞報表時,就會建構報表連結。A report link is constructed when the report is delivered. 此報表伺服器電子郵件傳遞延伸模組會使用組態檔中的 UrlRoot 設定來建立此連結。The report server e-mail delivery extension uses the UrlRoot setting in the configuration file to create the link. UrlRoot 也會用來解析透過自動報表處理產生之轉譯報表中的連結。UrlRoot is also used to resolve links in a rendered report that is generated through unattended report processing.

當您設定用於應用程式存取的 URL 時,UrlRoot 便會自動指定於 RSReportServer.config 檔案中。UrlRoot is specified automatically in the RSReportServer.config file when you configure URLs for application access. 如果您在組態檔中修改這個值,您必須指定報表伺服器 Web 服務的有效 URL 位址,該服務會連接到包含您要傳遞之報表的報表伺服器資料庫。If you modify this value in the configuration file, you must specify a valid URL address to a Report Server Web service that is connected to a report server database that contains the reports you want to deliver. 您只能為單一報表伺服器執行個體指定一個 UrlRoot;任何給定之報表伺服器執行個體的 RSReportServer.config 檔案中只能有一個 UrlRoot 項目存在。You can only specify one UrlRoot for a single report server instance; only one UrlRoot entry can exist in the RSReportServer.config file for any given report server instance. 如果您為報表伺服器 Web 服務保留多個 URL,您必須為 UrlRoot 選擇其中一個可用的值。If you have multiple URLs reserved for the Report Server Web service, you must choose one of the available values for UrlRoot.

在大部分情況下,您不需要修改 UrlRootIn most cases, you do not need to modify UrlRoot. 不過,如果報表伺服器會透過完整的 URL,而且您未設定使用完整的網站名稱的主機標頭的 URL,您必須編輯 RSReportServer.config 以手動方式設定UrlRoot完整報表伺服器將用來轉譯報表的 URL (例如 https://www.adventure-works.com/mywebapp/reportserver) 。However, if the report server will be accessed through a fully qualified URL, and you did not configure a URL that uses a host header to the fully qualified site name, you must edit the RSReportServer.config manually to set the UrlRoot to the fully qualified report server URL that will be used to render the report (for example, https://www.adventure-works.com/mywebapp/reportserver).

將報表管理員和 Web 組件連接到報表伺服器 Web 服務的 URLURLs Connecting Report Manager and Web Parts to the Report Server Web Service

報表管理員和 Reporting Services 的 SharePoint 2.0 Web 組件是用來連接報表伺服器的 Web 前端元件。Report Manager and the SharePoint 2.0 Web Parts for Reporting Services are Web front-end components that connect to a report server. 用來連接後端報表伺服器的 URL 包含以下項目:URLs used to connect to a backend report server include the following:

  • ReportServerUrl (由報表管理員使用)ReportServerUrl (used by Report Manager)

  • ReportServerExternalUrl (由 Web 組件使用)ReportServerExternalUrl (used by Web Parts)

注意

舊版 Reporting Services 包含 ReportServerVirtualDirectory 元素。Previous versions of Reporting Services included the ReportServerVirtualDirectory element. 但是,在 SQL Server 2008SQL Server 2008 和更新版本中,此值已經過時。This value is obsolete in SQL Server 2008SQL Server 2008 and later versions. 如果您已升級現有的安裝,而且正在使用包含此設定的組態檔,則報表伺服器就不會再讀取這個值。If you upgraded an existing installation and are using a configuration file that contains this setting, the report server no longer reads this value.

下表提供可以在 Reporting ServicesReporting Services 組態檔中指定之所有 URL 的摘要。The following table provides a summary of all the URLs that can be specified in a Reporting ServicesReporting Services configuration file.

設定Setting 使用量Usage 描述Description
ReportServerUrl 選擇性。Optional. 除非您自行加入,否則這個元素不會包含在 RSReportServer.config 檔案中。This element is not included in the RSReportServer.config file unless you add it yourself. 只有當您要設定以下其中一個狀況時,才能設定這個元素:Set this element only if you are configuring one of the following scenarios:

報表管理員會提供報表伺服器 Web 服務的 Web 前端存取權,該服務可在不同電腦上執行或是在相同電腦的不同執行個體上執行。Report Manager provides Web front-end access to a Report Server Web service that runs on a different computer or a different instance on the same computer.

當您擁有報表伺服器的多個 URL,而且希望報表管理員使用特定的 URL 時。When you have multiple URLs to a report server and you want Report Manager to use a specific URL.

您擁有特定報表伺服器 URL,您希望所有報表管理員連接都使用此 URL。You have a specific report server URL through which you want all Report Manager connections to use.

例如,您可能會啟用網路上所有電腦的報表管理員存取權,但是您需要報表管理員透過本機連接來連接報表伺服器。For example, you might enable Report Manager access for all computers on network, yet require that Report Manager connect to the report server through a local connection. 在此情況下,您可能會設定ReportServerUrl到 「 http://localhost/reportserver "。In this case, you might configure ReportServerUrl to "http://localhost/reportserver".



如需有關如何實作這些案例的指示,請參閱 < 設定報表管理員(原生模式)[SQL Server]SQL Server線上叢書 》。For instructions on how to implement these scenarios, see Configure Report Manager (Native Mode) in [SQL Server]SQL Server Books Online.
這個值會指定報表伺服器 Web 服務的 URL。This value specifies a URL to the Report Server Web service. 報表管理員應用程式會在啟動時讀取這個值。This value is read by the Report Manager application at startup. 如果設定了這個值,報表管理員將會連接到此 URL 中指定的報表伺服器。If this value is set, Report Manager will connect to the report server that is specified in the URL.

根據預設,報表管理員會提供報表伺服器 Web 服務的 Web 前端存取權,該服務會在相同報表伺服器執行個體內當做報表管理員來執行。By default, Report Manager provides Web front-end access to the Report Server Web service that runs within the same report server instance as Report Manager. 但是,如果您要將報表管理員搭配報表伺服器 Web 服務一起使用 (該服務屬於另一個執行個體的一部分,或是會在不同電腦的執行個體中執行),您就可以設定此 URL 來引導報表管理員連接外部報表伺服器 Web 服務。However, if you want to use Report Manager with a Report Server Web service that is part of another instance or runs in an instance on a different computer, you can set this URL to direct Report Manager to connect to the external Report Server Web service.

如果您在要連接的報表伺服器上安裝了安全通訊端層 (SSL) 憑證,ReportServerUrl 值必須是為該憑證註冊的伺服器名稱。If a Secure Sockets Layer (SSL) certificate is installed on the report server to which you are connecting, the ReportServerUrl value must be the name of the server that is registered for that certificate. 如果您收到錯誤,「 基礎連接已關閉:無法建立 SSL/TLS 安全通道的信任關係 」,設定ReportServerUrl發出的 SSL 憑證的對象伺服器的完整的網域名稱。If you get the error, "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS security channel", set ReportServerUrl to the fully qualified domain name of the server for which the SSL certificate was issued. 例如,如果已將此憑證註冊到 https://adventure-works.com.onlinesales,報表伺服器 URL 即為 https://adventure-works.com.onlinesales/reportserverFor example, if the certificate is registered to https://adventure-works.com.onlinesales, the report server URL would be https://adventure-works.com.onlinesales/reportserver.
ReportServerExternalUrl 選擇性。Optional. 除非您自行加入,否則這個元素不會包含在 RSReportServer.config 檔案中。This element is not included in the RSReportServer.config file unless you add it yourself.

只有當您要使用 SharePoint 2.0 Web 組件,而且希望使用者能夠擷取報表,並在新的瀏覽器視窗中開啟此報表時,才設定這個元素。Set this element only if you are using the SharePoint 2.0 Web Parts and you want users to be able to retrieve a report and open it in a new browser window.

加入 <ReportServerExternalUrl> 底下 <ReportServerUrl> 項目,然後再把它的完整的報表伺服器名稱會解析為報表伺服器執行個體在不同的瀏覽器視窗中存取時。Add <ReportServerExternalUrl> underneath the <ReportServerUrl> element, and then set it to a fully qualified report server name that resolves to a report server instance when accessed in a separate browser window. 請勿刪除 <ReportServerUrl>。Do not delete <ReportServerUrl>.

下列範例說明語法:The following example illustrates the syntax:

<ReportServerExternalUrl>http://myserver/reportserver</ReportServerExternalUrl>
這個值是由 SharePoint 2.0 Web 組件使用。This value is used by the SharePoint 2.0 Web Parts.

舊版中曾經建議您設定這個值,以便將「報表產生器」部署在供網際網路存取的報表伺服器上,In previous releases, it was recommended that you set this value to deploy Report Builder on an Internet-facing report server. 這是未經測試的部署狀況。This is an untested deployment scenario. 如果您過去使用這項設定來支援「報表產生器」的網際網路存取,現在應該考慮改用替代的策略。If you used this setting in the past to support Internet access to Report Builder, you should consider an alternative strategy.

另請參閱See Also

設定報表伺服器 URL (SSRS 組態管理員) Configure Report Server URLs (SSRS Configuration Manager)
設定 URL (SSRS 組態管理員)Configure a URL (SSRS Configuration Manager)