共用方式為


Deletealternatedomain:Stsadm 作業 (Windows SharePoint Services)

作業名稱:Deletealternatedomain

描述

從 URL 區域刪除內部 URL。

此作業相當於 SharePoint 管理中心網站之 [備用存取對應] 頁面的 [編輯內部 URL] 使用者介面設定。

如需詳細資訊,請參閱<設定備用存取對應 (Windows SharePoint Services)>。

語法

stsadm -o deletealternatedomain

-url <有效的 URL>

-incomingurl <http://incoming.url>

參數

參數名稱

必要?

描述

url

有效的 URL,例如 http://server_name 或 https://sharepoint:1234

Web 應用程式的 URL。

Windows SharePoint Services 3.0 會忽略此參數。但仍保留此參數,以供回溯相容性之用。

incomingurl

有效的 URL,如 "http://sharepoint.courses.contoso.com:1234"

您要刪除的內部 URL。

備註

由於區域的公用 URL 亦會用為區域的內部 URL,同時 Web 應用程式必須永遠具備預設區域的公用 URL,因此不可刪除預設區域的最後一個內部 URL。

在 Windows SharePoint Services 2.0 中,內部 URL 稱為傳入 URL,公用 URL 稱為傳出 URL。

範例

若反向 Proxy 伺服器或負載平衡器收到使用者要求 https://www.contoso.com,並將其以 http://sharepoint.courses.contoso.com:1234 的形式轉寄到執行 Windows SharePoint Services 3.0 的伺服器,則管理員會將 SharePoint Web 應用程式的 URL 設定如下:

內部 URL:http://sharepoint.courses.contoso.com:1234

公用 URL:https://www.contoso.com

在此範例中,https://sharepoint:1234 及 http://sharepoint.courses.contoso.com:1234 即是指定給使用網際網路區域之 Web 應用程式的備用存取對應 (AAM) URL。

若要刪除 http://sharepoint.courses.contoso.com:1234 內部 URL,請使用下列語法:

stsadm -o deletealternatedomain -incomingurl http://sharepoint.courses.contoso.com:1234

若要確認對內部 URL 的變更,請使用下列語法:

stsadm -o enumalternatedomains -url https://sharepoint:1234

另請參閱

概念

Deletezoneurl
Enumalternatedomains