SharePoint Site Collections and Host Header URLs

If you want to use SharePoint for hosting multiple vanity URLs one option is to use Host Header URLs.

e.g. http://demo1.mydomain.com and http://demo2.mydomain.com , etc……

I used the following software:

Windows 2008 RTM SP2 virtual server, SQL 2008 SP1, WSS 3.0 SP2 for 64bit

Create a Web App for mydomain.com (top level site) on port 80.

Create a site collection on this new Web App, use whatever template you wish.

Create Host Header site collection for demo1.mydomain.com with following command

STSADM -o createsiteinnewdb -URL http://demo1.mydomain.com/ -owneremail myaddress@mydomain.com -ownerlogin MYDOMAIN\myloginname -HHURL http://myserver -databaseserver myserver -databasename WSSContentDemo1DB -sitetemplate STS#0

The STS#0 sitetemplate value creates a team site.

Add an entry in the IIS bindings for the mydomain site for demo1.mydomain.com beneath the default (blank)binding. Do not edit the default.

Once you are sure that your A record is updated with your ISP for demo.mydomain.com browse to http://demo1.mydomain.com on your desktop (not the server) and the site collection should appear in your browser after you login.

Repeat for http://demo2.mydomain.com

Accessing the HHURL Site Collection on the actual server that hosts the site is not possible because the web site is using Integrated Authentication and has a name that is mapped to the local loopback address. To resolve the loopback issue on the local machine try Method 2 of this KB article:

http://support.microsoft.com/kb/896861/en-us

Advertisements

1 Comment »

  1. Great post thanks!

RSS feed for comments on this post · TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: