1

I know how to implement Content Type Hub & MySite as Path-Based site collections (PBSC), but in case of implementing Host-Named site collection (HNSC), I have doubt.

Can anyone guide me how to create a:

  1. Content Type Hub site collection as a HNSC
  2. MySite site collection as a HNSC
  • HNSC? Host name Site Collection? – Simon Doy Aug 2 '13 at 20:31
  • yes, u r correct – user17251 Aug 3 '13 at 3:21
1

As mysites use self service site creation to automatically create sites when a user first navigates to them, it is not recommended to use Host Named Site Collections for user's mysites.
This is because you either need to pre-create all mysites (and then manually create sites for new users) using powershell, or use custom code to manage the provisioning process. This could quickly become a maintenance nightmare, and will have a higher cost of development and support.

Of course, you can use a combination of HNSC and PBSC. So you could, say, have My sites and your intranet in the same web application, and have the intranet use HNSC, while My sites use PBSC.

For a content type hub, you create the site as you would a team site using HNSC.

To create a Hostnamed Site Collection (applies to all, including Mysites and content type hubs), use the -HostHeaderWebApplication parameter of New-SPSite in PowerShell.

So, for example (let's say we have a contoso web application):

PS> New-SPSite 'http://intranet.contoso.com' -HostHeaderWebApplication 'http://contoso’ -Name 'Intranet'

There are more details (including a detailed example) at this technet article.

| improve this answer | |
  • Any reason for the downvote? – Russell Dec 8 '13 at 11:04
  • To make a clarification. You can create a My Site site collection as a HNSC. But, when the user's My Sites are provisioned the OOB provisioning will use the self-service site creation, which is Path-Based Site Collection (PBSC). If you want your My Sites to be 100% HNSC, then you will need to implement your own custom self-service site provisioning using HNSC. The following link clarifies things (especially the comments): blogs.technet.com/b/tothesharepoint/archive/2013/05/17/… – H A Dec 10 '13 at 0:54
  • Thanks for the feedback, I'll add some clarification to my answer. The MySite ref in your link were in the comments, and the MSFT even states: "Note: We do not recommend to pre-create my sites." – Russell Dec 10 '13 at 1:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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