About Me

My photo
Muthupet, TamilNadu, India
SharePoint 2010

Friday, February 28, 2014

To create a SiteCollection with a host header irrespective of the WebApplication host header

To create a SiteCollection with a host header irrespective of the WebApplication host header
(even if the WebApplication did not have a host header)
Solution:
In PowerShell: New-SPSite http://host.header.site.url -OwnerAlias DOMAIN\username -HostHeaderWebApplication http://servername

Need to add a A record in the DNS.

**If you want to make this work in your dev machine then add a entry in the Hosts file of your SharePoint server.

C:\Windows\System32\drivers\etc\hosts.txt

for example:

127.0.0.1          intranet.c2il.com

No comments:

Post a Comment