在 SharePoint Server 中定義受管理的路徑Define managed paths in SharePoint Server

摘要: 了解如何為 SharePoint Server 2013 和 SharePoint Server 2016 中的 Web 應用程式新增受管理路徑。Summary: Learn how to add a managed path for a web application in SharePoint Server 2013 and SharePoint Server 2016.

您可以指定 Web 應用程式 URL 命名空間中哪些路徑要用於網站集合。這叫做「受管理路徑」。您可以指定在指定路徑上有一或多個網站集合存在。You can specify the paths in the URL namespace of a web application to use for site collections. This is know as a managed path. You can specify that one or more site collections exist at a specified path.

您可以建立兩種類型的受管理路徑:There are two types of managed paths that you can create:

  • 包含相對路徑可讓您將多個網站集合附加到指定的路徑。例如,如果您將 /engineering 新增為從根網站 http://contoso 開始的包含相對路徑,則可以從 http://contoso/engineering 開始建立多個網站集合。A wildcard inclusion allows you to append multiple site collections to the path that you specify. For example, if you add /engineering as a wildcard inclusion off of your root site of http://contoso, then you'll be able to create multiple site collections off of http://contoso/engineering.

  • 包含絕對路徑可讓您建立具有指定位址的單一網站集合。例如,如果您將 /finance 新增為從根網站 http://contoso 開始的包含絕對路徑,則可以建立具有 http://contoso/finance 位址的單一網站集合。An explicit inclusion allows you to create a single site collection with the specified address. For example, if you add /finance as an explicit inclusion off of your root site of http://contoso, then you'll be able to create a single site collection with the address http://contoso/finance.

請注意,Web 應用程式的根目錄會自動包含為包含絕對路徑。不支援將根目錄變更為包含相對路徑。Note that the root of a web application is automatically included as an explicit inclusion. Changing the root to a wildcard inclusion is not supported.

使用管理中心定義 Web 應用程式的管理路徑Define managed paths for a web application by using Central Administration

使用此處所述程序可藉由管理中心新增或刪除 Web 應用程式的管理路徑。Use the procedures that are described here to add or delete managed paths for a web application by using Central Administration.

使用 管理中心 新增受管理路徑To add a managed path by using Central Administration

  1. 確認執行此工作的使用者帳戶為 SharePoint 伺服器陣列管理員群組的成員。Verify that the user account that is performing this task is a member of the Farm Administrators SharePoint group.

  2. 在 SharePoint 管理中心網站中,按一下 [應用程式管理]*On the SharePoint Central Administration website, click *Application Management.

  3. 在 [應用程式管理]**** 頁面上,按一下 [管理 Web 應用程式]*On the *Application Management page, click Manage web applications.

  4. 按一下要對路徑進行管理的 Web 應用程式。Click the web application for which you want to manage paths.

    功能區隨即啟用。The ribbon becomes active.

  5. 在功能區的 [管理]**** 群組 按一下 [受管理路徑]*In the *Manage group of the ribbon, click Managed Paths.

  6. 在 [定義管理的路徑]**** 頁面的 [新增路徑]**** 區段中,輸入要加入的路徑。On the Define Managed Paths page, in the Add a New Path section, type the path to include.

  7. 按一下 [檢查 URL]**** 確認路徑尚不存在。Click Check URL to confirm that the path does not already exist.

  8. 在 [類型]**** 清單中,選取 [包含相對路徑]**** 或 [包含絕對路徑]**** 以識別路徑類型。In the Type list, select either Wildcard inclusion or Explicit inclusion to identify the type of path.

    [包含相對路徑]**** 類型包含所有從屬於指定路徑的路徑。[包含絕對路徑]**** 類型包含以指定路徑表示的唯一網站。從屬於指定路徑的網站不會包含在內。The Wildcard inclusion type includes all paths that are subordinate to the specified path. The Explicit inclusion type includes only the site that is indicated by the specified path. Sites subordinate to the specified path are not included.

  9. 按一下 [新增路徑]*Click *Add Path.

  10. 完成新增路徑後按一下 [確定]When you have finished adding paths, click OK.

    使用 管理中心 移除受管理路徑To remove a managed path by using Central Administration

  11. 確認執行此工作的使用者帳戶為 SharePoint 伺服器陣列管理員群組的成員。Verify that the user account that is performing this task is a member of the Farm Administrators SharePoint group.

  12. 在 SharePoint 管理中心網站中,按一下 [應用程式管理]*On the SharePoint Central Administration website, click *Application Management.

  13. 在 [應用程式管理]**** 頁面上,按一下 [管理 Web 應用程式]*On the *Application Management page, click Manage web applications.

  14. 按一下要對路徑進行管理的 Web 應用程式。功能區隨即啟用。Click the web application for which you want to manage paths. The ribbon becomes active.

  15. 在功能區的 [管理]**** 群組 按一下 [受管理路徑]*In the *Manage group of the ribbon, click Managed Paths.

  16. 在 [定義管理的路徑]**** 頁面的 [包含路徑]**** 區段中,按一下要移除之路徑旁的核取方塊。On the Define Managed Paths page, in the Included Paths section, click the check box next to the path that you want to remove.

  17. 按一下 [刪除選取的路徑]*Click *Delete selected paths.

    警告

    執行此動作之前,請先確定您要移除所選取的路徑。之後您將沒有機會再確認。刪除將立即生效。Be sure that you want to remove the selected path before you perform this action. You'll have no additional opportunity to confirm. Deletion is immediate.

  18. 完成移除路徑後按一下 [確定]*After you are finished removing paths, click *OK.

另請參閱See also

其他資源Other Resources

New-SPManagedPathNew-SPManagedPath

Get-SPManagedPathGet-SPManagedPath

Remove-SPManagedPathRemove-SPManagedPath