【发布时间】:2013-09-13 18:12:08
【问题描述】:
我想在 SharePoint 2010 Web 应用程序 http://portal.contoso.com 中创建多个网站集,例如 http://site1.contoso.com、http://site2.contoso.com。所以我遵循了建议的主机命名站点集合方法 http://technet.microsoft.com/en-us/library/cc424952(v=office.14).aspx
我尝试在 powershell 上运行以下命令
New-SPWebApplication -Name "HNSC01" -Port 80 -HostHeader http://HNSC01.contoso.com -URL -ApplicationPool ContosoAppPool -ApplicationPoolAccount (Get-SPManagedAccount <server>\<user>)
这里的 URL 似乎不合适,因为它是参数,所以我尝试在没有 URL 的情况下运行命令,但根本没有执行。
这是我的问题。
- 我想知道我的方向是否正确?
- 有没有更好的方法可以达到同样的效果?
【问题讨论】:
-
我可以使用 -HostHeader HNSC01.Contoso.com 运行命令并使用主机标头创建名为网站集的主机。
标签: sharepoint-2010 sitecollection