Creating sites in host header mode in WSS v3

Creating sites in host header mode in WSS v3

  • Comments 7

In WSS v2 to create sites in host header mode it required the farm/config db be setup with the -hh option.  In v3 this is no longer the case.

You now (post beta 2) create sites like this...

stsadm.exe -o createsite

           -url http://site.domain.com

           -ownerlogin DOMAIN\username

           -owneremail username@domain.com

           -hhurl http://web.application.com

This allows you to then host both host header sites and normal corporate mode sites on the same web application and same farm.

Leave a Comment
  • Please add 8 and 2 and type the answer here:
  • Post
  • Hi

    In WSS2 we created the Config DB without -hh. We would now like to apply this to the existing Config DB. can this be done?

    Thanks

  • So, Why doesn't the restore process work?  Specifically, there is no place to indicate the host header, and so the second site restore fails...

  • Hi,

    I am trying to create sites in host header mode programmatically. I was able to create the host header based sites on a web application using the command line utility stsadm.exe. But, i have not been successful in doing the same programmatically.

    This is the code i used to create the sites in path based mode.

    I have this already created webapplication called "abcd".

    SPWebApplication spw = SPWebApplication.Lookup(new Uri("http://foo.com"));

    SPSite site = spw.Sites.Add("sites\bar", "my site", "", 1033, "","domain\\user", "", "a@a.com");

    I am not able to find an option in the Sites.Add() method wherein one can provide the "host -header mode" option.

    Can you help me with this?

    Thanks

  • Hi MagicGirl

    Can you please share the command that you have used with stsadm.exe

    Thanks

    Alpesh

  • Hi,

    Can we assign two host headrs base url to single sharepoint site which is host header base site

  • No you can't have more than 1 header on a host header/Host named site collection.  (one way to get around this is with redirects like TinyURL.com

  • My operations team is trying to profile our WSS application because we are experiencing some performance issues.

    Profilers like ANTS seem to be choking on WSS site collections (Host Headers).

    Any ideas that my help us?  ...cause we are stuck in the mud.

Page 1 of 1 (7 items)