設定 URL (SSRS 組態管理員)Configure a URL (SSRS Configuration Manager)

使用報表管理員或報表伺服器 Web 服務之前,您至少必須為每一個應用程式設定一個 URL。Before you can use Report Manager or the Report Server Web service, you must configure at least one URL for each application. 如果您在「僅限檔案」模式下安裝了 Reporting ServicesReporting Services (意即在安裝精靈的 [報表伺服器安裝選項] 頁面中選取 [安裝但不設定伺服器] 選項),就一定要設定 URL。Configuring the URLs is mandatory if you installed Reporting ServicesReporting Services in "files-only" mode (that is, by selecting the Install but do not configure the server option on the Report Server Installation Options page in the Installation Wizard). 如果您在預設組態中安裝了 Reporting ServicesReporting Services ,就表示已經為每一個應用程式設定了 URL。If you installed Reporting ServicesReporting Services in the default configuration, URLs are already configured for each application. 如果您擁有一個設定成使用 SharePoint 整合模式的報表伺服器,而且您使用 Reporting ServicesReporting Services 組態工具來更新報表伺服器 Web 服務 URL,也必須在 SharePoint 管理中心內更新此 URL。If you have a report server that is configured to use SharePoint Integrated mode and you update the Report Server Web Service URL by using the Reporting ServicesReporting Services Configuration tool, you must also update the URL in SharePoint Central Administration.

使用 Reporting ServicesReporting Services 組態工具可設定 URL,Use the Reporting ServicesReporting Services Configuration tool to configure the URLs. URL 的所有部分都會定義在這個工具中。All parts of the URL are defined in this tool. 與舊版不同的是,Internet Information Services (IIS) 網站不再提供 Reporting ServicesReporting Services 和更新版本中 SQL Server 2008SQL Server 2008 應用程式的存取權。Unlike earlier releases, Internet Information Services (IIS) Web sites no longer provide access to Reporting ServicesReporting Services applications in SQL Server 2008SQL Server 2008 and later versions.

Reporting ServicesReporting Services 會提供可在大多數部署狀況下順利運作的預設值,包括與其他 Web 服務和應用程式的並存部署。provides default values that work well in most deployment scenarios, including side-by-side deployments with other Web services and applications. 預設 URL 會併入執行個體名稱,好讓在相同電腦上執行多個報表伺服器執行個體時的 URL 衝突風險降到最低。Default URLs incorporate instance names, minimizing the risk of URL conflicts if you run multiple report server instances on the same computer.

本主題提供下列工作的指示:This topic provides instructions for the following tasks:

  • 為報表伺服器 Web 服務建立 URL。Create a URL for the Report Server Web service.

  • 為報表管理員建立 URL。Create a URL for Report Manager.

  • 設定進階的 URL 屬性,以定義其他 URL。Set advanced URL properties to define additional URLs.

如需詳細資訊如何儲存和維護 Url 或是互通性問題,請參閱 < 關於 「 URL 保留項目和註冊(SSRS 組態管理員)Install Reporting服務和 Internet Information Services 並排顯示(SSRS 原生模式)[SQL Server]SQL Server線上叢書 》。For more information about how URLs are stored and maintained or interoperability issues, see About URL Reservations and Registration (SSRS Configuration Manager) and Install Reporting Services and Internet Information Services Side-by-Side (SSRS Native Mode)in [SQL Server]SQL Server Books Online. 若要檢閱 Reporting Services 安裝中常用的 URL 範例,請參閱本主題的< URL 範例 >。To review examples of URLs often used in a Reporting Services installation, see Examples of URLs in this topic.

先決條件Prerequisites

在您建立或修改 URL 之前,請記住以下要點:Before you create or modify a URL, remember the following points:

  • 您在報表伺服器電腦上必須是本機管理員群組的成員。You must be a member of the local Administrators group on the report server computer.

  • 如果相同電腦上安裝了 IIS 6.0 或 7.0,請檢查使用通訊埠 80 之任何網站上的虛擬目錄名稱。If IIS 6.0 or 7.0 is installed on the same computer, check the names of virtual directories on any Web site that uses port 80. 如果您看到任何虛擬目錄使用預設 Reporting Services 虛擬目錄名稱 (意即 "Reports" 和 "ReportServer"),請為您設定的 Reporting ServicesReporting Services URL 選擇不同的虛擬目錄名稱。If you see any virtual directories that use the default Reporting Services virtual directory names (that is, "Reports" and "ReportServer"), choose different virtual directory names for the Reporting ServicesReporting Services URLs that you configure.

  • 您必須使用 Reporting ServicesReporting Services 組態工具來設定 URL,You must use the Reporting ServicesReporting Services Configuration tool to configure the URL. 請勿使用系統公用程式。Do not use a system utility. 絕對不要直接在 RSReportServer.config 檔案的 URLReservations 區段中修改 URL 保留項目。Never modify URL reservations in the URLReservations section of the RSReportServer.config file directly. 若要更新儲存於內部的基礎 URL 保留項目以及同步處理 RSReportServer.config 檔案中儲存的 URL 設定,必須要使用 Reporting ServicesReporting Services 組態工具。Using the Reporting ServicesReporting Services Configuration tool is necessary to update both the underlying URL reservation that is stored internally and synchronize the URL settings stored in the RSReportServer.config file.

  • 請選擇具有低報表活動的時間。Choose a time that has low report activity. 每當 URL 保留項目變更時,您就可以預期報表伺服器 Web 服務和報表管理員的應用程式定義域可能會回收使用。Each time the URL reservation changes, you can expect that the application domains for Report Server Web service and Report Manager might be recycled.

  • 如需 Reporting ServicesReporting ServicesURL 建構和使用方式的概觀,請參閱 設定報表伺服器 URL (SSRS 組態管理員)建立 URL。For an overview of URL construction and usage in Reporting ServicesReporting Services, see Configure Report Server URLs (SSRS Configuration Manager).

為報表伺服器 Web 服務設定 URLTo configure a URL for the Report Server Web service

  1. 啟動 Reporting ServicesReporting Services 組態工具,並連接到本機報表伺服器執行個體。Start the Reporting ServicesReporting Services Configuration tool and connect to a local report server instance.

  2. 按一下 [Web 服務 URL]Click Web Service URL.

  3. 指定虛擬目錄。Specify the virtual directory. 此虛擬目錄名稱會識別哪一個應用程式將接收要求。The virtual directory name identifies which application receives the request. 由於 IP 位址和通訊埠可由多個應用程式共用,所以此虛擬目錄名稱會指定哪一個應用程式要接收要求。Because an IP address and port can be shared by multiple applications, the virtual directory name specifies which application receives the request.

    這個值必須是唯一的,以確保此要求可送到所要的目的地。This value must be unique to ensure that the request reaches its intended destination. 這是必要的值。This value is required. 而且不區分大小寫。It is case-insensitive. 虛擬目錄名稱與 Reporting ServicesReporting Services 應用程式的執行個體之間為一對一的對應關係。There is a one-to-one correspondence between a virtual directory name and an instance of a Reporting ServicesReporting Services application. 如果您對相同的應用程式執行個體建立多個 URL,必須在為此應用程式執行個體定義的所有 URL 中使用相同的虛擬目錄名稱。If you create multiple URLs to the same application instance, you must use the same virtual directory name in all of the URLs you define for this application instance.

    如果是報表伺服器 Web 服務,預設虛擬目錄名稱會是 ReportServerFor the Report Server Web service, the default virtual directory name is ReportServer.

  4. 指定可唯一識別網路上之報表伺服器電腦的 IP 位址。Specify the IP address that uniquely identifies the report server computer on the network. 如果您想要指定主機標頭,或針對相同的應用程式執行個體定義其他 URL,您必須按一下 [進階]If you want to specify a host header or define additional URLs for the same application instance, you must click Advanced. 如需有關如何針對 URL 設定進階屬性的指示,請參閱本主題稍後的指示。For instructions on how to set advanced properties on the URL, see the instructions later in this topic. 否則,請使用 [Web 服務 URL] 頁面,從下列值當中選取:Otherwise, use the Web Service URL page to select from the following values:

    • [全部指派] 會指定指派給電腦的任何一個 IP 位址都可以用於指向報表伺服器應用程式的 URL。All Assigned specifies that any of the IP addresses that are assigned to the computer can be used in a URL that points to a report server application. 這個值也包含易記主機名稱 (如電腦名稱),網域名稱伺服器可將該名稱解析為指派給電腦的 IP 位址。This value also encompasses friendly host names (such as computer names) that can be resolved by a domain name server to an IP address that is assigned to the computer. 這是 Reporting ServicesReporting Services URL 的預設值。This is the default value for a Reporting ServicesReporting Services URL.

    • [全未指派] 會指定報表伺服器將會接收另一個應用程式尚未處理的任何要求。All Unassigned specifies that the report server will receive any request that has not been handled by another application. 建議您避免使用這個選項。We recommend that you avoid this option. 如果您選取這個選項,則另一個具有更強式 URL 保留項目的應用程式就可能會攔截要送給報表伺服器的要求。If you select this option, it becomes possible for another application that has a stronger URL reservation to intercept requests intended for the report server.

    • [127.0.0.1] 是用來存取 localhost 的 IPv4 位址,127.0.0.1 is the IPv4 address used to access to localhost. 它可支援報表伺服器電腦上的本機管理。It supports local administration on the report server computer. 如果您只選取這個值,則只有在本機登入報表伺服器電腦的使用者才會擁有此應用程式的存取權。If you select only this value, only users who are logged on locally to the report server computer will have access to the application.

    • [::1] 是 IPv6 格式的回送位址。::1 is the loopback address in IPv6 format.

    • 特定的 IP 位址也會出現在這個清單中。Specific IP addresses also appear in this list. IP 位址可以採用 IPv4 和 IPv6 格式。IP addresses can be in IPv4 and IPv6 formats. Nnn.nnn.nnn.nnn 是電腦網路介面卡的 32 位元 IPv4 位址。Nnn.nnn.nnn.nnn is the 32-bit IPv4 address of a network adapter card on your computer. IPv6 位址為 128 位元,具有以冒號分隔的八個 4 位元組的欄位:<前置詞>:nnnn:nnnn:nnnn:nnnn:nnnn:nnnnIPv6 addresses are 128-bit, with eight 4-byte fields separated by colons: <prefix>:nnnn:nnnn:nnnn:nnnn:nnnn:nnnn

      如果您有多張網路介面卡或是您的網路同時支援 IPv4 和 IPv6 位址,您將會看到多個 IP 位址。If you have multiple cards or if your network supports both IPv4 and IPv6 addresses, you will see multiple IP addresses. 如果您只選取一個 IP 位址,它會將應用程式存取限制為只有該 IP 位址 (以及網域名稱伺服器對應至該位址的任何主機名稱)。If you select only one IP address, it will limit application access to the just the IP address (and any host name that a domain name server maps to that address). 您無法使用 localhost 來存取報表伺服器,而且也不能使用安裝於報表伺服器電腦上之其他網路卡的 IP 位址。You cannot use localhost to access a report server, and you cannot use the IP addresses of other network adapter cards that are installed on the report server computer. 一般來說,如果您選取這個值,這是因為您正在設定多個同時也指定明確 IP 位址或主機名稱的 URL 保留項目 (例如,一個項目用於內部網路連接的網路介面卡,另一個項目用於外部網路連接)。Typically, if you select this value, it is because you are configuring multiple URL reservations that also specify explicit IP addresses or host names (for example, one for a network adapter card used for intranet connections and a second one used for extranet connections).

  5. 指定通訊埠。Specify the port. Reporting ServicesReporting Services 和 Windows Server 2008 上,通訊埠 80 是 Windows VistaWindows Vista 的預設值,因為它可以與其他應用程式共用。Port 80 is the default for Reporting ServicesReporting Services on Windows VistaWindows Vista and Windows Server 2008 because it can be shared with other applications. 如果您想要使用自訂通訊埠編號,請記得一定要在用來存取報表伺服器的 URL 中指定它。If you want to use a custom port number, remember that you will have to always specify it in the URL used to access the report server. 您可以使用下列方法來尋找可用的通訊埠:You can use the following techniques to find an available port:

    • 從命令提示字元輸入下列命令,以傳回所使用的 TCP 通訊埠清單:From a command prompt, type the following command to return a list of TCP ports that are being used:

      netstat -a -n -p tcp

    • 請檢閱 Microsoft 技術支援文件 TCP/IP 連接埠指派資訊,以閱讀有關 TCP 通訊埠指派以及已知通訊埠 (0 到 1023)、已註冊的通訊埠 (1024 到 49151) 和動態或私人通訊埠 (49152 到 65535) 之間差異的資訊。Review the Microsoft Support article, Information about TCP/IP port assignments, to read about TCP port assignments and the differences between Well Known Ports (0 through 1023), Registered Ports (1024 through 49151), and Dynamic or Private Ports (49152 through 65535).

    • 如果您正在使用 Windows 防火牆,您必須開啟此通訊埠。If you are using Windows Firewall, you must open the port. 如需指示,請參閱 Configure a Firewall for Report Server AccessFor instructions, see Configure a Firewall for Report Server Access.

  6. 如果您尚未這樣做,請確認 IIS (如果已安裝) 並沒有與您打算使用之名稱相同的虛擬目錄。If you have not done so already, verify that IIS (if it is installed) does not have virtual directory with the same name you plan to use.

  7. 如果您安裝了 SSL 憑證,您可以現在選取它,以便將此 URL 繫結至電腦上所安裝的 SSL 憑證。If you installed an SSL certificate, you can select it now to bind the URL to the SSL certificate that is installed on your computer.

  8. 如果您選擇性地選取 SSL 憑證,您就可以指定自訂通訊埠。Optionally, if you select an SSL certificate, you can specify a custom port. 預設值是 443,但是您可以使用任何可用的通訊埠。The default is 443 but you can use any port that is available.

  9. 按一下 [套用] ,即可建立此 URL。Click Apply to create the URL.

  10. 按一下頁面 [URL] 區段中的連結來測試此 URL。Test the URL by clicking the link in the URLs section of page. 請注意,在您可以測試此 URL 之前,必須先建立及設定報表伺服器資料庫。Note that the report server database must be created and configured before you can test the URL. 如需指示,請參閱建立原生模式報表伺服器資料庫 (SSRS 設定管理員)For instructions, see Create a Native Mode Report Server Database (SSRS Configuration Manager).

  11. 此外,如果您的報表伺服器設定成使用 SharePoint 整合模式,請在 SharePoint 管理中心內設定報表伺服器 Web 服務 URL。Additionally, if your report server is configured to use SharePoint Integrated mode, configure the Report Server Web service URL in SharePoint Central Administration. 如需如何更新在 SharePoint 管理中心內的報表伺服器 Web 服務 URL 的詳細資訊,請參閱設定和管理報表伺服器的(Reporting Services SharePoint 模式)Reporting Services 報表伺服器(SharePoint 模式)For more information about how to update the Report Server Web service URL in SharePoint Central Administration, see Configuration and Administration of a Report Server (Reporting Services SharePoint Mode) and Reporting Services Report Server (SharePoint Mode).

為報表管理員建立 URL 保留項目To create a URL reservation for Report Manager

  1. 啟動 Reporting ServicesReporting Services 組態工具,並連接到報表伺服器執行個體。Start the Reporting ServicesReporting Services Configuration tool and connect to the report server instance.

  2. 按一下 [報表管理員 URL]Click Report Manager URL.

  3. 指定虛擬目錄。Specify the virtual directory. 報表管理員會接聽與報表伺服器 Web 服務相同的 IP 位址和通訊埠。Report Manager listens on the same IP address and port as the Report Server Web service. 如果您設定報表管理員指向不同的報表伺服器 Web 服務,您必須修改 RSReportServer.config 檔案中的報表管理員 URL 設定。If you configured Report Manager to point to a different Report Server Web service, you must modify the Report Manager URL settings in the RSReportServer.config file. 如需相關指示,請參閱 < 設定報表管理員(原生模式)[SQL Server]SQL Server線上叢書 》。For instructions, see Configure Report Manager (Native Mode) in [SQL Server]SQL Server Books Online.

  4. 如果您安裝了 SSL 憑證,就可以選取它,以便要求送給報表管理員的所有要求都透過 HTTPS 路由傳送。If you installed an SSL certificate, you can select it to require that all requests to Report Manager are routed over HTTPS.

    如果您選擇性地選取 SSL 憑證,您就可以指定自訂通訊埠。Optionally, if you select an SSL certificate, you can specify a custom port. 預設值是 443,但是您可以使用任何可用的通訊埠。The default is 443 but you can use any port that is available.

  5. 按一下 [套用] ,即可建立此 URL。Click Apply to create the URL.

  6. 按一下頁面 [URL] 區段中的連結來測試此 URL。Test the URL by clicking the link in the URLs section of page.

設定進階屬性來指定其他 URLSetting Advanced Properties to Specify Additional URLs

您可以藉由指定不同的通訊埠或主機名稱,為報表伺服器 Web 服務或報表管理員保留多個 URL (可以是 IP 位址,或是網域名稱伺服器可解析為指派給電腦之 IP 位址的主機標頭名稱)。You can reserve multiple URLs for the Report Server Web service or Report Manager by specifying different ports or host names (either an IP address or a host header name that a domain name server can resolve to an IP address assigned to the computer). 您可以藉由建立多個 URL,設定對相同報表伺服器執行個體的不同存取路徑。By creating multiple URLs, you can set up different access paths to the same report server instance. 例如,若要啟用對報表伺服器的內部網路和外部網路存取,您可能會使用預設 URL 來存取內部網路,並使用額外的完整主機名稱來存取外部網路:For example, to enable intranet and extranet access to a report server, you might use the default URL for access across the intranet, and an additional fully qualified host name for extranet access:

您不能為相同的應用程式執行個體設定多個虛擬目錄名稱。You cannot set multiple virtual directory names for the same application instance. 每一個 Reporting ServicesReporting Services 應用程式執行個體都會對應到單一虛擬目錄名稱。Each Reporting ServicesReporting Services application instance is mapped to a single virtual directory name. 如果您在相同電腦上有多個 Reporting ServicesReporting Services 執行個體,應用程式的虛擬目錄名稱應該包含此執行個體名稱,以確保每一個要求都會到達所要的目標。If you have multiple instances of Reporting ServicesReporting Services on the same computer, the virtual directory name for an application should include the instance name to ensure that each request reaches its intended target.

設定 URL 的進階屬性To set advanced properties on a URL

  1. [Web 服務 URL][報表管理員 URL] 頁面上,按一下 [進階]On either the Web Service URL or Report Manager URL page, click Advanced.

  2. 按一下 [加入]Click Add.

  3. 按一下 IP 位址或主機標頭名稱。Click IP Address or Host Header Name. 如果您指定主機標頭,請務必指定 DNS 服務可以解析的名稱。If you specify a host header, be sure to specify a name that the DNS service can resolve. 如果您要指定公開可用的網域名稱,請包含整個 URL,包括 http://www 在內。If you are specifying publicly available domain name, include the whole URL, including http://www.

  4. 指定通訊埠。Specify the port. 如果您指定自訂通訊埠,應用程式的 URL 一定要包含通訊埠編號。If you specify a custom port, the URL to the application must always include the port number.

  5. 按一下 [確定] 。Click OK.

  6. 開啟瀏覽器視窗,並輸入此 URL 加以測試。Test the URL by opening a browser window and entering the URL.

相同電腦上多個報表伺服器執行個體的 URLURLs for Multiple Report Server Instances on the Same Computer

如果您為多個 Reporting ServicesReporting Services執行個體保留 URL,您應該遵循命名慣例,好讓您可以避免命名衝突。If you are reserving URLs for multiple instances of Reporting ServicesReporting Services, you should follow naming conventions so that you can avoid naming conflicts. 如需詳細資訊,請參閱多重執行個體報表伺服器部署的 URL 保留項目 (SSRS 組態管理員)For more information, see URL Reservations for Multi-Instance Report Server Deployments (SSRS Configuration Manager).

URL 組態的範例Examples of URL Configurations

下列清單顯示一些報表伺服器 URL 的範例:The following list shows some examples of what a report server URL might resemble:

您用以存取報表管理員的 URL 共用類似的格式,而且通常建立在主控報表伺服器的相同網站之下。URLs that you use to access Report Manager share a similar format and are typically created under the same Web site that hosts the report server. 唯一不同的是虛擬目錄名稱 (在這個範例中為 reports ,但是您可以將它設定成想要使用的任何名稱):The only difference is the virtual directory name (in this case, it is reports but you can configure it to use whatever name that you want):

另請參閱See Also

Reporting Services 組態管理員 (原生模式) Reporting Services Configuration Manager (Native Mode)
設定報表伺服器 URL (SSRS 組態管理員)Configure Report Server URLs (SSRS Configuration Manager)