Configuring SharePoint 2013 Host Named Site Collections and Apps Host

November 22 2012 102 comments

There are a few good articles about configuring Sharepoint 2013 apps host, but atleast I found it somehow difficult to figure out how for example Intranet web application and application host could be configured. For beginning you should read this article http://technet.microsoft.com/en-us/library/fp161230(v=office.15).aspx

The key to get apps host working is host named site collection (HNSC). Most of us have used host named web applications, but quite a few are familiar with host named site collections. Host named site collections are part of tenant technology and you can read more about it in Kirk Evans MSDN blog article http://blogs.msdn.com/b/kaevans/archive/2012/03/27/what-every-sharepoint-admin-needs-to-know-about-host-named-site-collections.aspx

I will first explain what we are going to do. The idea is to create web application that will host two site collections:
- Intranet site (http://intranet.sp.dev)
- Apps Catalog site (http://intranet.sp.dev/apps)

In SharePoint 2010 this wouldn’t have been possible since you couldn’t use managed paths with host named site collections. This is one of the improvements in 2013 and hence it’s now possible to use managed paths with HNSC.

Based on the technet article we are going to use url http://app-GUID.spapps.dev for apps. Note that this is not a subdomain of sp.dev –domain.
The first thing to do is to add DNS-records for intranet and apps. You can do this by following the steps listed in the following article http://technet.microsoft.com/en-us/library/fp161236.aspx. You should also start following services in Central Admin:
- App Management Service
- Microsoft SharePoint Foundation Subscription Settings Service

We are not going to take a look at these steps in more detail because there’s already tens of articles explaining how to do that.

Next we are going create a new host web application for site collections. This is done by PowerShell (note that managed account sp_app has to be added already):

$ap = New-SPAuthenticationProvider
$wa = New-SPWebApplication -DatabaseName "SharePoint_Content_Intranet" –ApplicationPool "Intranet" -Name "Intranet" -Port 80 -ApplicationPoolAccount (Get-SPManagedAccount "sp\sp_app") -AuthenticationProvider $ap

This will create an empty web application that will be using servers name as address. Next you have to create an empty site in CA to the web application root. I got a lot of critical events to the event log when it was missing. Also other users have reported issues if it’s missing (i.e. http://blogs.technet.com/b/mpriem/archive/2012/11/07/always-have-a-root-site-collection.aspx).

After that we will add intranet site collection. We will be using team site as site collection template (STS#0). You can get all templates by using Get-SPWebTemplate command.

New-SPSite "http://intranet.sp.dev" -OwnerAlias "SP\sp_install" -HostHeaderWebApplication $wa -Name "Intranet" –Template "STS#0"

Now you should be able to open address http://intanet.sp.dev. Let’s next create the apps host site for our intranet. We want to use URL http://intranet.sp.dev/apps thus we need to add a new managed path. SharePoint 2013 supports managed paths with host HNSC (SharePoint 2010 did also). A new managed path to be used with HNSC can be added by using PowerShell:

New-SPManagedPath -RelativeURL "apps" -HostHeader –Explicit

Let’s now add the App Catalog Site: APPCATALOG#0

New-SPSite "http://intranet.sp.dev/apps" -OwnerAlias “SP\sp_install" -HostHeaderWebApplication $wa -Name "Application Catalog" -Template “APPCATALOG#0”

After that we have to configure apps. This can be done in Central Admin Apps section. Click Manage App Catalog.

Apps section in CA

Select the right web application from top right corner and select Enter a URL for an existing app catalog site. Insert your app catalog address.

After that configure App URLs from Apps section.
Insert your app domain (spapps.dev) and app prefix (app).

You can now test your apps host by navigating to http://app-123456789.spapps.dev . You should get a login prompt.

Then comes the tricky question. What is the best practice for handling these URLs?
You cannot add http://*.spapps.dev to trusted sites or local intranet zone because it would compromise your security with certain browsers (), but I’m sure your users will be not happy with constant login prompts when they navigate to sites using apps. If you have an opinion about this, please leave a comment.

Note that if you want to crawl HNSCs you just add your web applications address to the search content source (not individual site collection addresses).

Popularity: 35% [?]

102 comments to “Configuring SharePoint 2013 Host Named Site Collections and Apps Host”

  1. Dan says:

    I followed directions, but still can not add apps from the SharePoint store. I access site settings Add an app, sharepoint store, and I get sorry this site does not support apps…”

    I have app domain established.

    Any advice?

  2. lawn mower says:

    Nice response in return of this difficulty with firm arguments and explaining the whole
    thing regarding that.

  3. anal sex says:

    I know this web site provides quality dependent
    articles or reviews and extra stuff, is there any other
    website which gives such information in quality?

  4. I love your site! I am reaching out online to see if you would be interested in our no-fee payment processing (surcharge program). Would love to talk if you have a few minutes today! I am at https://www.linkedin.com/in/brianna-blake-15a749179/.

  5. Jon says:

    Thanks guys!

  6. things i wanted to say is that i really need some sleep and that this blog is starting to look good…

  7. towing says:

    Very useful resource. Thank you!

  8. Please keep us up to date like this. Thanks for sharing…

  9. I useԁ tօ bе aƅle tߋ find good informatyion fгom yoսr
    blog articles.

  10. Dubuque Tree Service says:

    Thanks for the post!@

  11. Amazing content! Thank you so much for this article!

  12. You need to try sextreffen ludwigshafen for your own free sexy chat pleasure with wonderful local girls!

  13. HugitiusCer says:

    DTVN – Vб»ў KHГ”NG BIбєѕT Дђбєє ( Phim HГ i Дђбє·c Biệt Hay Nhất Việt Nam 2020 ) https://vn.vlipa.lv/video/TXMySGxwSjV4ZWNEZU5zPVJL.html

  14. FbsbMyday says:

    cialis uk no prescription ordering cialis in canada cialis cost nz

  15. I understand your concerns here but I think you did a great job there!

  16. nischay says:

    I had read the whole article , such a great content over here! Thank you for sharing this valuable content! tenali ramakrishna stories in hindi

  17. Cape Coral says:

    Read the whole article. Its so worth it! pressure washing services

  18. I am going to think about it in handling these two urls.

  19. The whole article is worth reading, blessed to be able to find this clay roof tiles

  20. Zephyr says:

    Really enjoyed this article.
    https://www.cbrrubbishremoval.com.au/

  21. Lyndsey says:

    There is a lot of important information in here.

    Website

  22. Shemale à Marseille is great web platform for finding casual chat contacts in France and whole EU

  23. more info says:

    ThANK YOU SO MUCH! Your content is nothing short of brilliant in many ways.

  24. KIM says:

    Thanks for the tips on configuration.
    https://www.concretesantaclaritaca.com/

  25. Shemale Treff springt in die Lücke zwischen einer Anwendung wie Tinder und Grindr, die sich sowohl an Heterosexuelle als auch an Homosexuelle richtet. Obwohl Tinder und auch Grindr zusätzlich erlauben, sich als Transgender zu registrieren, sind sie nicht speziell für diesen Zweck. Das ist bei dieser Seite der Fall. Natürlich möchte man auch hier nicht in eine Schublade gesteckt werden. Aber wenn Sie auf der Suche nach einem Shemale sind, ist dies die richtige Seite für Sie!

  26. Sex Bremen says:

    Sex Bremen ist eine der besten Websites, die es gibt. Die Nutzer erhalten niemals Spam-E-Mails, sondern wichtige Benachrichtigungen. Wenn Sie zum Beispiel ein verheirateter Mann sind, der eine Frau sucht, werden Sie nicht zum ungünstigsten Zeitpunkt belästigt, so dass Sie Ihre Affäre unentdeckt lassen können.

  27. Sex Aachen says:

    Sex Aachen konvergiert sexy Singles weltweit, die sofortige Kontakte suchen. Zögern Sie nicht, unserer seriösen Online-Chat-Website beizutreten. Sie werden überrascht sein, wie schnell wir für Sie einen Partner finden können. Bevor Sie sich versehen, werden Sie einen umwerfenden Partner in Ihrer Nähe finden und eine unvergessliche Erfahrung machen.

  28. Sex Köln says:

    Sex Köln ist für kurvige Frauen aller Altersgruppen und ihre Verehrer gedacht. Es gibt etwa doppelt so viele Männer wie Frauen auf der Seite. Die Mehrheit der Frauen ist zwischen 18 und 24 Jahre alt. Der Beitritt zur Seite ist kostenlos, das Versenden von Nachrichten, die Suche nach Leuten, das Stöbern in anderen Mitgliedern und ein paar andere tolle Funktionen.

  29. Geile Nutten says:

    Geile Nutten ist einfach zu navigieren, wobei sich die meisten der verfügbaren Ressourcen auf der linken Seite des Bildschirms befinden. Über eine große lilafarbene Schaltfläche oben auf der Homepage werden die Besucher aufgefordert, sich kostenlos auf der Website anzumelden.

  30. Sexdate says:

    Sexdate is gemakkelijk te navigeren, met de meeste beschikbare bronnen aan de linkerkant van het scherm. Een grote paarse knop bovenaan de homepage nodigt bezoekers uit zich gratis op de website te registreren.

  31. Sexdate says:

    Sexdate zal u zeker niet teleurstellen. Het is gratis om lid te worden, maar als je eenmaal een account hebt aangemaakt en onder de oppervlakte bent gedoken, zul je genieten van alles wat er wordt aangeboden. De gemeenschap zal je liefde doen oplichten, want elk contact is als het vinden van iets los en luchtigs.

  32. Mona says:

    Excellent weblog, great work. Thanks for this! General Contractor

  33. Mary says:

    It really is a great help. big thanks for sharing this information. mold removal near me

  34. If you are looking for casual chat contacts in France you must to visit transsexuelle sex lyon

  35. Pani szuka pana jest, jak sama nazwa wskazuje, portalem randkowym, na którym można przede wszystkim nawiązać kontakt seksualny z innymi mężczyznami i kobietami o podobnych poglądach. Czy lubisz flirtować z innymi mężczyznami i kobietami powyżej 18 roku życia?

  36. Angel17 says:

    Such an interesting read. Thanks for sharing! Chain Link Fence Installation

  37. builder16 says:

    Thanks for sharing this article ! it’s really useful
    Tree Services

  38. Maria says:

    I tried to configure this for Pasadena Drywall Contractors project. Surprisingly, it worked!

  39. Vivasexe says:

    Vivasexe est l’un des groupes de rencontres les plus actifs pour les échangistes, bien que ses 200 000 membres soient nettement moins nombreux que sur la plupart des autres sites examinés. Il s’agit néanmoins d’une communauté active avec une approche très directe.

  40. builder16 says:

    “very informative article!!! thank you so much!

    Tree Service Fort Worth

  41. builder16 says:

    “Excellent blog post, keep up the great work
    Accountants Hamilton

  42. boL16 says:

    “Such a well-researched and informative piece.
    Plastic Surgery Mesa

  43. Celestine102 says:

    I’ve learned so much from your content. It’s inspiring me to explore further, Catch Basin Cleaning

  44. boL16 says:

    Glad to see this post.
    Tallahassee Plastic Surgery

  45. boL16 says:

    Great blog! Thanks for the share.
    Landscaping Edmonton

  46. Chacha says:

    I access site settings Add an app, sharepoint store, and I get sorry this site does not support apps…

    Please help,
    top drywall contractor in Montgomery

  47. builder16 says:

    Very helpful blog tips. Thank you so much for sharing
    Concrete Calgary

  48. Blake says:

    The idea is to create a web application that will host two site collections, which is a brilliant approach for Portland Excavation Pros. All the best!

Leave a Reply