I am following the below instruction to create a NHSC, but at point D when I am creating a Team Site, I get the message that the new URL is not found! Do I need to create that before? Am I missing something here?
Create Site Collections for Testing SharePoint & SharePoint Apps:
a) Open SharePoint 2013 Management Shell: b) Get a reference to the HNSC web application you just created by running the following Windows PowerShell script in the SharePoint 2013 Management Shell:
$hnscWebApp = Get-SPWebApplication | Where-Object {$_.DisplayName -eq "SharePoint HNSC Host - 80"}
c) Create a non-templated site at the root of the web application for Workflow to connect to by executing the following Windows PowerShell script in the SharePoint 2013 Management Shell:
New-SPSite -Name "Root HNSC Site Collection" -Url "http://wingtip.com" -HostHeaderWebApplication $hnscWebApp -OwnerAlias "WINGTIP\Administrator"
d) Create a team site by executing the following Windows PowerShell script in the SharePoint 2013 Management Shell:
New-SPSite -Name "Wingtip Intranet" -Url "http://intranet.wingtip.com" –HostHeaderWebApplication $hnscWebApp -Template "STS#0" -OwnerAlias "WINGTIP\Administrator"
e) Create a developer site by executing the following Windows PowerShell script in the SharePoint 2013 Management Shell:
New-SPSite -Name "Wingtip Developer Site" -Url "http://dev.wingtip.com" –HostHeaderWebApplication $hnscWebApp -Template "DEV#0" -OwnerAlias "WINGTIP\Administrator"
You can only create, debug and test apps using a developer site.
At this point you now have a site collection to use as a team site (http://intranet.wingtip.com) and to develop and test custom SharePoint apps (http://dev.wingtip.com).