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

本主題描述報表伺服器 Web 服務和報表管理員的 URL 字串部分。This topic describes the parts of the URL string for the Report Server Web service and Report Manager. 儲存於內部的 URL 字串結構與您在瀏覽器視窗的網址列中輸入的 URL 不同。The URL string that is stored internally has a different structure from a URL that you type in the Address bar of a browser window. 當您設定 URL 而且它位於 RSReportServer.config 檔案中時,URL 保留項目字串會出現在 Reporting Services 組態工具的 [結果] 視窗中。The URL reservation string appears in the Results window of the Reporting Services Configuration tool when you configure a URL and in the RSReportServer.config file. 如果您要排除 URL 保留項目問題或是查詢 HTTP.SYS 來檢視伺服器上所定義的內部 URL 保留項目,知道 URL 字串如何定義將會很有幫助。Knowing how the URL string is defined can be useful if you are troubleshooting URL reservation problems or querying HTTP.SYS to view the internal URL reservations that are defined on your server.

URL 語法URL Syntax

報表伺服器 URL 會儲存在 UrlString 元素和 VirtualDirectory 元素中。A report server URL is stored in the UrlString element and the VirtualDirectory element. UrlStringVirtualDirectory 分成不同元素的理由,是為了讓您可以擁有多個 URL 字串,但是每一個 Reporting ServicesReporting Services 應用程式只會有一個虛擬目錄名稱。The reason for separating UrlString and VirtualDirectory into separate elements is that you can have multiple URL strings, but only one virtual directory name for each Reporting ServicesReporting Services application.

在 HTTP.SYS 中,URL 保留項目包含 UrlStringVirtualDirectory 兩者。In HTTP.SYS, the URL reservation includes both the UrlString and VirtualDirectory. URL 保留項目的語法包含以下部分:The syntax for a URL reservation has the following parts:

<配置>://<主機名稱>:<連接埠>/<虛擬目錄><scheme>://<hostname>:<port>/<virtualdirectory>

下表將描述每一個屬性以及對每一個屬性有效的值。The following table describes each property and which values are valid for each one.

屬性Property 有效的值Valid values 描述Description
配置Scheme http 或 httpshttp or https 非 SSL 和 SSL 連接的前置詞。Prefixes for non-SSL and SSL connections.
主機名稱Hostname (+) 強式萬用字元,等於 IP 位址的 [(全部指派)] 值。(+) Strong wildcard, equates to (All Assigned) value for the IP address.

(*) 弱式萬用字元,等於 [(全未指派)] 的 IP 位址。(*) Weak wildcard, equates to an IP address of (All Unassigned).

完整網域名稱Fully qualified domain name

電腦名稱Machine name

IP 位址 (IPV4)IP address (IPV4)

IP 位址 (IPV6)IP address (IPV6)
識別網路上的伺服器。Identifies the server on the network.

(+) 強式萬用字元是預設值。(+) Strong wildcard is the default. HTTP.SYS 將會接受所有網路介面卡上對於給定通訊埠和虛擬目錄組合的所有要求。HTTP.SYS will accept all requests on all network adaptors for a given port and virtual directory combination. 報表伺服器將會接受此通訊埠上的任何要求。The report server will accept any request on the port.

(*) 弱式萬用字元。(*) Weak wildcard. HTTP.SYS 將會接受所有網路介面卡上,對於給定通訊埠和虛擬目錄組合而且未由其他 URL 保留項目處理的所有要求。HTTP.SYS accepts all requests not handled by other URL reservations on all network adaptors for a given port and virtual directory combination.

電腦名稱是電腦在網路上的 NETBIOS 名稱。Machine name is the NETBIOS name of the computer on the network.

完整網域名稱包含網域位址和伺服器名稱 (該名稱已經向網域控制站或公用網域名稱伺服器註冊)。Fully qualified domain name includes domain address and server name, as registered with a domain controller or public domain name server.

IP 位址 (IPV4) 是電腦上網路介面卡的 IP 位址,它是使用 IPV4 格式: nnn.nnn.nnn.nnnIP address (IPV4) is the IP address of a network adaptor on the computer in IPV4 format: nnn.nnn.nnn.nnn.

IP 位址 (IPV6) 是電腦上網路介面卡的 IP 位址,它是使用 IPV6 格式:<標頭>:<標頭>:nnn.nnn.nnn.nnnIP address (IPV6) is the IP address of a network adaptor on the computer in IPV6 format: <header>:<header>:nnn.nnn.nnn.nnn.
通訊埠Port 8080

443443

<custom><custom>
通訊埠 80 是與伺服器之間往來之 HTTP 要求的標準通訊埠。Port 80 is the standard port for HTTP requests to and from a server.

通訊埠 443 是 SSL 連接的標準通訊埠。Port 443 is the standard report for SSL connections.

您可以使用尚未被另一個應用程式保留的任何通訊埠。You can use any port that is not already reserved by another application.
VirtualDirectoryVirtualdirectory ReportServer [_InstanceName]ReportServer [_InstanceName]

Reports [_InstanceName]Reports [_InstanceName]

<custom><custom>
指定應用程式的名稱。Specifies the name of the application. 這個值為字串。This value is a string. 根據預設, Reporting ServicesReporting Services 會使用 ReportServer 和 Reports 當做報表伺服器 Web 服務和報表管理員應用程式的應用程式名稱。By default, Reporting ServicesReporting Services uses ReportServer and Reports as the application names for the Report Server Web service and Report Manager applications. 如果您要的話,可以使用不同的名稱。You can use different names if you prefer.

這是必要的值。This value is required. 它會識別應用程式。It identifies the application.

只能針對每一個應用程式執行個體指定一個虛擬目錄。Specify only one virtual directory for each application instance. 若要針對相同執行個體內的相同應用程式建立多個 URL,請建立多個版本的 UrlStringTo create multiple URLs for the same application in the same instance, create multiple versions of the UrlString. 若要針對多個應用程式執行個體建立唯一的虛擬目錄名稱,請考慮在虛擬目錄名稱中包含此執行個體名稱 (使用底線字元 () 來附加此執行個體名稱)。To create unique virtual directory names for multiple application instances, consider including the instance name in the virtual directory name, using the underscore character () to append the instance name. InstanceName 為選擇性,但是如果您在相同電腦上有多個執行個體,則建議您使用它。InstanceName is optional, but recommended if you have multiple instances on the same computer. 如需如何設定具名執行個體之 URL 保留項目的詳細資訊,請參閱多重執行個體報表伺服器部署的 URL 保留項目(SSRS 設定管理員)For more information about how to set URL reservations for named instances, see URL Reservations for Multi-Instance Report Server Deployments (SSRS Configuration Manager).

虛擬目錄的值不區分大小寫。The value for virtual directory is not case-sensitive. 任何字串只要不包含 URL 分隔符號或 URL 編碼,就可以使用它。You can use any string as long as it does not include URL separator characters or URL encoding.

另請參閱See Also

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