SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any way to setup the My Site Host on a hosted-name site in Sharepoint 2013? I am able to create a My Shit Host site using New-SPSite, but when I try to enable Self Service Site create on the web application I get "Cannot enable site creation because there is no site collection at "/" on the Web application."

To make it clear...I'm trying to only use hosted-name sites so after installing SP 2013 I ran the following:

New-SPWebApplication -Name 'X Sites' -hostHeader '' -port 80 -ApplicationPool XXXAppPool -ApplicationPoolAccount (Get-SPManagedAccount 'corp\john') -AuthenticationProvider (New-SPAuthenticationProvider -UseWindowsIntegratedAuthentication)

Then made several site collections with:

New-SPSite '' -HostHeaderWebApplication '' -Name 'A New Site' -Description 'My Site' -OwnerAlias 'corp\john' -language 1033 -Template 'STS#0'

share|improve this question
Have you created a root site collection on that web app? – Falak Mahmood Jun 6 '13 at 0:19
That might be my problem...I created several hosted-name sites, but I'm not sure how to create a root site? – AKoran Jun 6 '13 at 0:28

Got the same issue but after reading lots of blog's and read carefully this TechNet article (, I finally find the way to create the Root ("/") site collection using HNSC and get MySites functional.

Kindling use the following PowerShell commands :

  • First create a root site collection

New-SPSite 'http: //servername' -Name 'Root' -Description 'Root site collection (empty site template)' -OwnerAlias 'account' -language 1033 -Template 'STS#1' -ContentDatabase 'WSS_Content_Rootdb'

Note that the root site collection must have the WebApplication URL's as name.

  • Then create a MySites site collection using template 'SPSRSITEHOST#0' (and dedicated content database)

New-SPSite 'http: //mysites.your-company.xy' -hostheader 'http: //servername' -Name 'MySites' -Description 'MySites Site Collection' -OwnerAlias 'account' -Language 1033 -Template 'SPSRSITEHOST#0' -ContentDatabase 'WSS-Content_MySites'

  • Finally set a Managed Path

New-ManagedPath 'my' -Hostheader

After all is done, go through the standard process to configure MySites functionnality on User Profile Service.

By doing all this, you'll be able to get MySites functionnality functional using Host-named site collection.

http: //mysites.your-company.xy/my/user-login

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.