關於 URL 保留項目和註冊 (SSRS 組態管理員)About URL Reservations and Registration (SSRS Configuration Manager)

Reporting Services 應用程式的 URL 會當做 URL 保留項目定義在 HTTP.SYS 中。URLs for Reporting Services applications are defined as URL reservations in HTTP.SYS. URL 保留項目會定義 Web 應用程式之 URL 端點的語法。A URL reservation defines the syntax of a URL endpoint to a Web application. 當您在報表伺服器上設定應用程式時,會同時針對報表伺服器 Web 服務和報表管理員定義 URL 保留項目。URL reservations are defined for both the Report Server Web service and Report Manager when you configure the applications on the report server. 當您透過安裝程式或 Reporting ServicesReporting Services 組態工具設定 URL 時,將會自動為您建立 URL 保留項目:URL reservations are created for you automatically when configure URLs through Setup or the Reporting ServicesReporting Services Configuration tool:

  • 安裝程式將會使用預設值建立 URL 保留項目。Setup will create URL reservations using default values. 如果安裝程式安裝預設組態,它將會保留兩個 URL;其中一個用於報表伺服器 Web 服務,另一個用於報表管理員。If Setup installs the default configuration, it will reserve two URLs; one of the Report Server Web service and another for Report Manager. 您可以使用 Reporting ServicesReporting Services 組態工具來加入更多的 URL,或是修改安裝程式所建立的預設 URL。You can use the Reporting ServicesReporting Services Configuration tool to add more URLs or modify the default URLs that Setup creates.

  • Reporting ServicesReporting Services 組態工具將會根據您在此工具的 [Web 服務 URL][報表管理員 URL] 頁面所指定的 URL 來建立 URL 保留項目。The Reporting ServicesReporting Services Configuration tool will create a URL reservation based on the URL you specify in the Web Service URL or Report Manager URL pages in the tool.

安裝程式和此工具也都將指派報表伺服器服務之 URL 的權限、檢查是否有重複的執行個體,然後將此 URL 保留項目加入到 HTTP.SYS。Both Setup and the tool will also assign permissions on the URL to the Report Server service, check for duplicate instances, and add the URL reservation to HTTP.SYS. 絕對不要直接使用 HttpCfg.exe 或其他工具來建立或修改 Reporting Services URL 保留項目。Never create or modify a Reporting Services URL reservation directly using HttpCfg.exe or other tool. 如果您略過某個步驟或是設定無效的值,您將會遇到可能很難診斷或修復的問題。If you skip a step or set an invalid value, you will encounter problems that might be difficult to diagnose or fix.

注意

HTTP.SYS 是一個作業系統元件,它可接聽網路要求,並將這些要求路由傳送到要求佇列。HTTP.SYS is an operating system component that listens for network requests and routes them to a request queue. 在這一版的 Reporting ServicesReporting Services中,HTTP.SYS 會建立及維護報表伺服器 Web 服務和報表管理員的要求佇列。In this release of Reporting ServicesReporting Services, HTTP.SYS establishes and maintains the request queue for the Report Server Web service and Report Manager. 將不再使用 Internet Information Services (IIS) 來主控或存取 Reporting ServicesReporting Services 應用程式。Internet Information Services (IIS) is no longer used to host or access Reporting ServicesReporting Services applications. 如需有關 HTTP.SYS 功能的詳細資訊,請參閱 MSDN 上的< HTTP 伺服器 API >。For more information about HTTP.SYS functionality, see HTTP Server API on MSDN.

Reporting Services 中的 URLURLs in Reporting Services

Reporting ServicesReporting Services 安裝中,您可以透過 URL 存取下列工具、應用程式和項目:In a Reporting ServicesReporting Services installation, you can access the following tools, applications, and items through URLs:

  • 報表伺服器 Web 服務Report Server Web service

  • 報表管理員Report Manager

  • 報表產生器Report Builder

  • 已經發行至報表伺服器的報表Reports that have been published to a report server

其他已發行之可由 URL 定址的項目 (例如模型和共用資料來源) 不應該透過當做獨立項目的 URL 來存取。Other published URL-addressable items, such as models and shared data sources, should not be accessed through URLs as stand-alone items. 在瀏覽器視窗中檢視這些項目時,報表伺服器不會使用有意義的格式來顯示這些項目。The report server does not display those items in a meaningful format when viewed in a browser window.

注意

本主題並未說明可存取報表產生器或報表伺服器上儲存之特定報表的 URL。This topic does not describe URL access to Report Builder or to specific reports that are stored on the report server. 如需這些項目之 URL 存取的詳細資訊,請參閱《 線上叢書》中的 使用 URL 存取權存取報表伺服器項目 [SQL Server]SQL ServerFor more information about URL access to these items, see Access Report Server Items Using URL Access in [SQL Server]SQL Server Books Online.

URL 保留項目和註冊URL Reservation and Registration

URL 保留項目會定義可用於存取 Reporting ServicesReporting Services 應用程式的 URL。A URL reservation defines the URLs that can be used to access a Reporting ServicesReporting Services application. Reporting ServicesReporting Services 將會保留一個或多個 URL 以供 HTTP.SYS 中的報表伺服器 Web 服務和報表管理員使用,然後在此服務啟動時加以註冊。will reserve one or more URLs for the Report Server Web service and Report Manager in HTTP.SYS, and then register them when the service starts. 報表產生器和報表的 URL 是根據報表伺服器 Web 服務的 URL 保留項目。URLs to Report Builder and reports are based on the Report Server Web service URL reservation. 您可以將參數附加到 URL,透過此 Web 服務開啟報表產生器或報表。By appending parameters to the URL, you can open Report Builder or reports through the Web service. 保留項目和註冊是由 HTTP.SYS 所提供。Reservations and registration is provided by HTTP.SYS. 如需詳細資訊,請參閱 MSDN 上的< 命名空間保留、註冊和路由 >。For more information, see Namespace Reservations, Registration, and Routing on MSDN.

「URL 保留」 是建立 Web 應用程式的 URL 端點,並將其儲存在 HTTP.SYS 中的一項程序。URL reservation is a process by which a URL endpoint to a Web application is created and stored in HTTP.SYS. HTTP.SYS 是所有定義於電腦上之 URL 保留項目的通用儲存機制,而且會定義一組通用規則來保證唯一的 URL 保留項目。HTTP.SYS is the common repository of all URL reservations that are defined on a computer and defines a set of common rules that guarantee unique URL reservations.

當此服務啟動時,就會發生 「URL 註冊」URL registration occurs when the service starts. 於是會建立要求佇列,而且 HTTP.SYS 會開始將要求路由傳送到該佇列。The request queue is created and HTTP.SYS begins routing requests to that queue. 必須先註冊 URL 端點之後,導向該端點的要求才會加入此佇列中。A URL endpoint must be registered before requests that are directed to that endpoint are added to the queue. 當報表伺服器服務啟動時,它將會註冊保留給所有啟用之應用程式使用的所有 URL。When the Report Server service starts, it will register all URLs that it has reserved for all enabled applications. 這表示必須啟用此 Web 服務,才會發生註冊。This means that the Web service must be enabled in order for registration to occur. 如果您在原則式管理之 Reporting Services 的介面區組態 Facet 中,將 [WebServiceAndHTTPAccessEnabled] 屬性設定為 [False] ,當此服務啟動時,將不會註冊此 Web 服務的 URL。If you set the WebServiceAndHTTPAccessEnabled property to False in the Surface Area Configuration for Reporting Services facet of Policy-Based Management, the URL for the Web service will not register when the service starts.

如果您停止此服務或是回收此 Web 服務或報表管理員應用程式定義域,URL 會取消註冊。URLs are unregistered if you stop the service or recycle the Web service or Report Manager application domain. 如果您在此服務執行時修改 URL 保留項目,報表伺服器將會立即回收應用程式定義域,好讓舊的 URL 可以取消註冊,並使用新的 URL。If you modify a URL reservation while the service is running, the report server will recycle the application domain immediately so that the old URL can be unregistered and the new one put into use.

幾個簡單範例將可說明 URL 保留項目的概念,以及它如何與用於 Reporting ServicesReporting Services 應用程式的 URL 位址相關。A few simple examples illustrate the concept of a URL reservation and how it relates to URL addresses used for Reporting ServicesReporting Services applications. 請注意一個要點,URL 保留項目的語法與用於存取此應用程式 URL 的語法不同:A key point to notice is that the URL reservation has different syntax than the URL you use to access the application:

HTTP.SYS 中的 URL 保留項目URL Reservation in HTTP.SYS URLURL 說明Explanation
http://+:80/reportserver http://<computername>/reportserverhttp://<computername>/reportserver

http://<IPAddress>/reportserverhttp://<IPAddress>/reportserver

http://localhost/reportserver
此 URL 保留項目會在通訊埠 80 上指定萬用字元 (+)。The URL reservation specifies a wildcard (+) on port 80. 如此會將任何指定可在通訊埠 80 上解析為報表伺服器電腦之主機的內送要求放入報表伺服器佇列中。This puts into the report server queue any incoming request that specifies a host that resolves to the report server computer on port 80. 請注意在處理這個 URL 保留項目時,可使用任意數目的 URL 來存取報表伺服器。Notice that with this URL reservation, any number of URLs can be used to access the report server.

對於大多數作業系統而言,這是 Reporting ServicesReporting Services 報表伺服器的預設 URL 保留項目。This is the default URL reservation for a Reporting ServicesReporting Services report server for most operating systems.
http://123.45.67.0:80/reportserver http://123.45.67.0/reportserver 此 URL 保留項目會指定 IP 位址,而且比起萬用字元 URL 保留項目更具限制性。This URL reservation specifies an IP address and is much more restrictive than the wildcard URL reservation. 只有包含此 IP 位址的 URL 可用來連接報表伺服器。Only URLs that include the IP address can be used to connect to the report server. 給定此 URL 保留項目,位於 http:// 的報表伺服器的要求<電腦名稱 > / reportserver 或 http://localhost/reportserver 會失敗。Given this URL reservation, a request to a report server at http://<computername>/reportserver or http://localhost/reportserver would fail.

預設 URLDefault URLs

如果您使用預設組態安裝 Reporting ServicesReporting Services ,安裝程式將會保留 URL 供報表伺服器 Web 服務和報表管理員使用。If you install Reporting ServicesReporting Services in the default configuration, Setup will reserve URLs for the Report Server Web service and Report Manager. 當您在 Reporting ServicesReporting Services 組態工具內定義 URL 保留項目時,您也可以接受這些預設值。You can also accept these default values when you define URL reservations in the Reporting ServicesReporting Services Configuration tool. 如果您安裝 SQL Server ExpressSQL Server Express 或是將 Reporting ServicesReporting Services 安裝為具名執行個體,預設 URL 將會包含執行個體名稱。Default URLs will include an instance name if you install SQL Server ExpressSQL Server Express or if you install Reporting ServicesReporting Services as a named instance.

重要

執行個體字元是一個底線字元 (_)。The instance character is an underscore character (_).

URL 保留項目包含通訊埠編號。URL reservations include a port number. 下列作業系統將允許多個 Web 應用程式共用一個連接埠:The following operating systems will allow multiple Web applications to share a port:

  1. Windows Server 2012Windows Server 2012

  2. Windows Server 2008 R2Windows Server 2008 R2

  3. Windows Server 2008Windows Server 2008

  4. Windows 7Windows 7

  5. Windows VistaWindows Vista

執行個體類型Instance Type 應用程式Application 預設 URLDefault URL HTTP.SYS 中的實際 URL 保留項目Actual URL reservation in HTTP.SYS
預設執行個體Default instance 報表伺服器 Web 服務Report Server Web service http://<servername>/reportserverhttp://<servername>/reportserver http://<servername>:80/reportserverhttp://<servername>:80/reportserver
預設執行個體Default instance 報表管理員Report Manager http://<servername>/reportserverhttp://<servername>/reportserver http://<servername>:80/reportserverhttp://<servername>:80/reportserver
具名執行個體Named instance 報表伺服器 Web 服務Report Server Web service http://<servername>/reportserver_<instancename>http://<servername>/reportserver_<instancename> http://<servername>:80/reportserver_<instancename>http://<servername>:80/reportserver_<instancename>
具名執行個體Named instance 報表管理員Report Manager http://<servername>/reports_<instancename>http://<servername>/reports_<instancename> http://<servername>:80/reports_<instancename>http://<servername>:80/reports_<instancename>
SQL Server ExpressSQL Server Express 報表伺服器 Web 服務Report Server Web service http://<servername>/reportserver_SQLExpresshttp://<servername>/reportserver_SQLExpress http://<servername>:80/reportserver_SQLExpresshttp://<servername>:80/reportserver_SQLExpress
SQL Server ExpressSQL Server Express 報表管理員Report Manager http://<servername>/reports_SQLExpresshttp://<servername>/reports_SQLExpress http://<servername>:80/reports_SQLExpresshttp://<servername>:80/reports_SQLExpress

Reporting Services URL 的驗證和服務識別Authentication and Service Identity for Reporting Services URLs

Reporting ServicesReporting Services URL 保留項目會指定報表伺服器服務的服務帳戶。URL reservations specify the service account of the Report Server service. 執行此服務所用的帳戶會用於針對相同執行個體內執行之 Reporting ServicesReporting Services 應用程式所建立的所有 URL。The account under which the service runs is used for all URLs that are created for the Reporting ServicesReporting Services applications that run in the same instance. 報表伺服器執行個體的服務識別會儲存在 RSReportServer.config 檔案中。The service identity of the report server instance is stored in the RSReportServer.config file.

此服務帳戶沒有預設值。The service account has no default value. 但是,安裝期間需要指定服務帳戶,而且即使您在僅限檔案模式下安裝伺服器,仍然會在 RSReportServer.config 的 URLReservation 中指定服務帳戶。However, specifying a service account is required during Setup and is specified in URLReservation in RSReportServer.config even if you install the server in files-only mode. 此服務帳戶的有效值包括網域使用者帳戶、LocalSystemNetworkServiceValid values for the service account include a domain user account, LocalSystem, or NetworkService.

由於預設安全性為 RSWindowsNegotiate,所以會停用匿名存取。Anonymous access is disabled because the default security is RSWindowsNegotiate. 如果是內部網路存取,報表伺服器 URL 會使用網路電腦名稱。For intranet access, report server URLs use network computer names. 如果您想要設定 Reporting ServicesReporting Services 進行網際網路連接,就必須使用不同的設定。If you want to configure Reporting ServicesReporting Services for Internet connections, you must use different settings. 如需驗證的詳細資訊,請參閱《 線上叢書》中的 使用報表伺服器驗證 [SQL Server]SQL ServerFor more information about authentication, see Authentication with the Report Server in [SQL Server]SQL Server Books Online.

用於本機管理的 URLURLs for Local Administration

如果您指定了強式或弱式萬用字元作為 URL 保留項目,則可以使用 http://localhost/reportserver 或 http://localhost/reports 。You can use http://localhost/reportserver or http://localhost/reports if you specified a strong or weak wildcard for the URL reservation.

http://localhost URL 會解譯成 http://127.0.0.1The http://localhost URL is interpreted as http://127.0.0.1. 如果您將 URL 保留項目限制為電腦名稱或單一 IP 位址,則除非您針對本機電腦上的 127.0.0.1 建立其他保留項目,否則將無法使用 localhost。If you pegged the URL reservation to a computer name or single IP address, you cannot use localhost unless you create an additional reservation for 127.0.0.1 on the local computer. 同樣地,如果電腦上已停用 localhost 或 127.0.0.1,您將無法使用該 URL。Similarly, if localhost or 127.0.0.1 is disabled on your computer, you cannot use that URL.

Windows VistaWindows Vista Windows Server 2008Windows Server 2008 包含新的安全性功能,可讓意外使用更高權限執行程式的風險降到最低。and Windows Server 2008Windows Server 2008 include new security features to minimize the risk of accidentally running programs with elevated privileges. 您需要其他步驟,才能在這些作業系統上啟用管理。Additional steps are necessary to enable local administration on these operating systems. 如需詳細資訊,請參閱 設定原生模式報表伺服器進行本機管理 (SSRS)For more information, see Configure a Native Mode Report Server for Local Administration (SSRS).

以 SharePoint 整合模式的報表伺服器的 UrlURLs for Report Server in SharePoint Integrated Mode

如果獨立報表伺服器設定為在 SharePoint 產品或技術的大型部署內執行,URL 和虛擬目錄建構將受到以下方面的影響:If a stand-alone report server is configured to run within a larger deployment of a SharePoint product or technology, URL and virtual directory construction will be affected in the following ways:

  • 報表和其他項目的 URL 會透過 SharePoint Web 應用程式 URL 來定址。URLs for reports and other items are addressed through the SharePoint Web application URL. 如果是特定報表的 URL 存取,請一定要使用包含網站路徑、文件庫、項目名稱和副檔名 (例如用於報表的 .rdl) 的完整 URL。For URL access to specific reports, always use a fully qualified URL that includes the site path, the document library, the item name, and a file name extension (such as .rdl for a report). 在報表中參考共用資料來源和模型時,以及當您將作業發行至報表伺服器時指定目標伺服器和資料夾時,必須指定完整的 URL。You must specify fully qualified URLs when you reference shared data sources and models in reports, and when you specify a target server and folders for publish operations to a report server.

  • 副檔名是用來區分不同類型的報表伺服器項目。The file name extension is used to distinguish between different types of report server items. 有效的副檔名包括報表定義的 .rdl、報表模型的 .smdl 以及針對 SharePoint 網站建立之共用資料來源的 .rsds。Valid extensions include .rdl for report definitions, .smdl for report models, and .rsds for shared data sources that are created for a SharePoint site.

  • 雖然 SharePoint 產品和技術有為其定義的 URL 保留項目,但是當您發行到伺服器時,可以忽略此保留項目。Although SharePoint products and technologies have URL reservations defined for them, you can ignore the reservation when publishing to the server. 如果是 SharePoint Web 應用程式,URL 保留會是內部作業。For SharePoint Web applications, URL reservation is an internal operation.

  • 整合的報表伺服器和 SharePoint 技術執行個體在相同電腦上安裝所在的單一伺服器部署,您無法使用 http://localhost/reportserver 。For single server deployments where an integrated report server and SharePoint technology instance are installed on the same computer, you cannot use http://localhost/reportserver. 如果 http://localhost 是用來存取 SharePoint Web 應用程式,您必須使用非預設的網站或唯一的連接埠指派來存取報表伺服器。If http://localhost is used to access the SharePoint Web application, you must use a non-default Web site or a unique port assignment to access a report server. 此外,如果此報表伺服器與 SharePoint 伺服陣列整合在一起,將不會針對此部署中安裝於遠端電腦上的節點來解析報表伺服器的 localhost 存取。Furthermore, if the report server is integrated with a SharePoint farm, localhost access to a reports server will not resolve for nodes in the deployment that are installed on remote computers.

  • 報表管理員的 URL 保留項目和端點將無法針對 SharePoint 整合模式下執行的報表伺服器來設定。The URL reservation and endpoint for Report Manager cannot be configured for a report server that runs in SharePoint integrated mode. 如果真要設定,該項目在 SharePoint 整合模式下部署報表伺服器之後就無法再運作。If you do configure it, it will no longer work after you deploy a report server in SharePoint integrated mode. 此模式不支援報表管理員。Report Manager is not supported in this mode.

如果您整合了報表伺服器向外延展部署,使其在較大的 SharePoint 產品或技術部署中執行,請讓報表伺服器節點負載平衡,並為向外延展部署定義單一虛擬伺服器 URL。If you integrated a report server scale-out deployment to run within a larger deployment of a SharePoint product or technology, load balance the report server nodes and define a single virtual server URL to the scale-out deployment. 報表伺服器整合設定只允許您指定單一報表伺服器 URL。Report Server integration settings only allow you to specify a single report server URL. 如果是向外延展部署,此 URL 必須是向外延展部署中伺服器節點的存取點。In the case of a scale-out deployment, the URL must be the access point for the server nodes in the scale-out deployment.

另請參閱See Also

設定 URL (SSRS 組態管理員) Configure a URL (SSRS Configuration Manager)
URL 保留項目語法 (SSRS 組態管理員)URL Reservation Syntax (SSRS Configuration Manager)