Like SharePoint 2007, you can create host-header based site collections in SharePoint 2010 as well. It means, that you do not necessarily need to create a site-collection under a managed path like /sites/, you can create multiple root-level site collections on same web-application/port by using host-header site collections. All you need to do is point your domain or sub-domain to your web-application and create a matching site-collection that you want.
But, like in 2007, it is something that you do by using STSADM, and is not available on Central Admin UI in 2010 as well. Yeah, though you can now also use PowerShell to create one:
C:\PS>$w = Get-SPWebApplication http://sitenameC:\PS>New-SPSite http://www.contoso.com -OwnerAlias "DOMAIN\username" -HostHeaderWebApplication $w -Title "Contoso" -Template "STS#0"This example creates a host header site collection. Because the template is provided, the root Web of this site collection will be created.
I’ve been playing with WCM in SharePoint 2010 more and more, and for that I preferred creating hosts file entries for desired domains and create site-collections by those headers – in my dev environment. I used PowerShell initially, but then got interested to build my own UI on Central Admin instead.
Comments
Post a Comment