多重執行個體報表伺服器部署的 URL 保留項目 (SSRS 組態管理員)URL Reservations for Multi-Instance Report Server Deployments (SSRS Configuration Manager)

如果您在相同電腦上安裝多個 Reporting ServicesReporting Services 執行個體,您就必須考慮要如何為每一個執行個體定義 URL 保留項目。If you install multiple instances of Reporting ServicesReporting Services on the same computer, you must consider how you will define the URL reservations for each instance. 在每一個執行個體中,報表伺服器 Web 服務和報表管理員至少每一個都必須有一個 URL 保留項目。Within each instance, the Report Server Web service and Report Manager must have at least one URL reservation each. 完整的保留項目集合在 HTTP.SYS 中必須是唯一的。The entire set of reservations must be unique in HTTP.SYS.

在 URL 註冊期間偵測到重複的 URL,這是在此服務啟動時發生。Duplicate URLs are detected during URL registration, which occurs when the service starts. 如果您建立非唯一的 URL 保留項目,則要等到您啟動此服務之後,才可偵測到名稱衝突。If you create URL reservations that are not unique, the name conflict might not be detected until you start the service. 因此,請務必遵循命名慣例或規則,以確保所有的值都是唯一的。For this reason, make sure that you follow naming conventions or rules to ensure all values are unique.

預設命名慣例Default Naming Conventions

Reporting ServicesReporting Services 可安裝在 [SQL Server]SQL Server 具名執行個體內。can be installed within a [SQL Server]SQL Server named instance. 當您在具名執行個體內安裝或設定報表伺服器時,執行個體名稱會自動包含在 Reporting ServicesReporting Services 提供之預設 URL 保留項目的虛擬目錄中。When you install or configure a report server within a named instance, the instance name is automatically included in the virtual directory in the default URL reservation that Reporting ServicesReporting Services provides. 下表將顯示預設執行個體和具名執行個體的 URL 保留項目。The following table shows the URL reservations for a default instance and a named instance.

SQL Server 執行個體SQL Server Instance 預設 URL 保留項目Default URL Reservation
預設值 (MSSQLServer)Default (MSSQLServer) http://+:80/reportserver
已命名 (MynamedInstance)Named (MynamedInstance) http://+:80/reportserver_MyNamedInstance

如果是具名執行個體,虛擬目錄會包含此執行個體名稱。For the named instance, the virtual directory includes the instance name. 預設執行個體和具名執行個體都會接聽相同的通訊埠,但是唯一的虛擬目錄名稱會決定哪一個報表伺服器取得要求。Both the default instance and the named instance listen on the same port, but the unique virtual directory names determine which report server gets the request.

最佳做法建議是使用虛擬目錄名稱來區分報表伺服器執行個體,Best practice recommendations are to use the virtual directory name to distinguish among the report server instance. 這樣會清楚對應 URL 與目標執行個體,並確定應用程式名稱在整個系統中都是唯一的。It provides a clear correspondence between a URL and the target instance, and ensures that the application names are unique across the whole system.

自訂命名慣例Custom Naming Conventions

雖然建議使用執行個體名稱,但是您可以使用 URL 語法和自己的命名慣例,以符合 URL 保留項目的唯一名稱條件約束。Although using the instance name is recommended, you can use the URL syntax and your own naming conventions to meet the unique name constraints for URL reservations. 下列範例說明為每一個執行個體建立唯一 URL 的不同方式。The following examples illustrate different approaches for creating unique URLs for each instance.

報表伺服器預設執行個體 (MSSQLSERVER)Report Server default instance (MSSQLSERVER) ReportServer_MyNamedInstanceReportServer_MyNamedInstance 唯一性Uniqueness
http://+:80/reportserver http://+:8888/reportserver 每個執行個體會接聽不同的通訊埠。Each instance listens on a different port.
http://www.contoso.com/reportserver http://SRVR-46/reportserver 每一個執行個體都會對應到不同的伺服器名稱 (完整網域名稱和電腦名稱)。Each instance responds to different server names (fully qualified domain name, and machine name).

唯一性規定Uniqueness Requirements

Reporting ServicesReporting Services 使用的基礎技術對於唯一的名稱有一些規定。The underlying technologies used by Reporting ServicesReporting Services impose requirements around unique names. HTTP.SYS 要求它的儲存機制內的所有 URL 都必須是唯一的。HTTP.SYS requires that all URLs within its repository be unique. 您可以讓通訊埠、主機名稱或虛擬目錄名稱不同,以建立唯一的 URL。You can vary the port, host name, or virtual directory name to create a unique URL. ASP.NETASP.NET 要求相同處理序內的應用程式識別必須是唯一的。requires that application identities be unique within the same process. 這項規定會影響虛擬目錄名稱,This requirement affects the virtual directory names. 它指定您不能在相同的報表伺服器執行個體內重複虛擬目錄名稱。It specifies that you cannot duplicate a virtual directory name within the same report server instance.

另請參閱See Also

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