Deletealternatedomain:Stsadm 操作 (Office SharePoint Server)

操作名称:Deletealternatedomain

说明

从 URL 区域删除内部 URL。

此操作与位于 SharePoint 管理中心网站的“备用访问映射”页上的“编辑内部 URL”用户界面设置等效。

有关详细信息,请参阅配置备用访问映射

语法

stsadm -o deletealternatedomain

   -url <valid 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。

示例

如果反向代理服务器或负载平衡器接收到来自用户的 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 已经是分配给正在使用 Internet 区域的 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