{membername}.domain.com ? Options
nec
Posted: Wednesday, February 27, 2008 3:21:40 PM
Rank: Enthusiast

Joined: 9/5/2006
Posts: 28

Hi all,

I was wondering about how to make a node have its own subdomain.
Or rather a member (with a contents-node linked)...

The scenario is like this:
1) A visitor fills out a application form, posts it and a member is created.
2) Just after the member is created a contents-node is created at a given place in the node hierarchy. Some properties are set via code, and a reference to the contents-node is set in a property in the member-node.

Thats about it.
But...

I need to be able to access the contents-page created with {membername}.domain.com. What would be the best practice? The solutions i've been thinking 'bout is:
1) To programatically set a Hostname on the contents-node.
2) To let another instance of IIS handle a blank hostheader, redirecting all unbinded access to the umbraco site.

All registration functionality is located in a Usercontrol.

I suppose the 1'st alternative would be the best one, but for some reason i cant get a hostname-change working in the instance of the umbraco site (supposable cause of misconfiguration with other nodes with hostnames).
The member container is located under the startpage of the site (@level=3).

Anyone done this before?
What would be the solution?

What about a HTTPHandler with UrlRewrite? Should i even bother?


Thanks,
Anders
tim
Posted: Wednesday, February 27, 2008 4:31:59 PM

Rank: Addict

Joined: 2/19/2007
Posts: 584
Location: Belgium
Hi,

Do you have any idea, how many members will be created ( tens, hundreds, thousands ).

Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
nec
Posted: Wednesday, February 27, 2008 4:56:36 PM
Rank: Enthusiast

Joined: 9/5/2006
Posts: 28
I'd say about thousands.
You'd say the choice of solution is depending on that?
tim
Posted: Wednesday, February 27, 2008 5:08:57 PM

Rank: Addict

Joined: 2/19/2007
Posts: 584
Location: Belgium
yeah, definitely. I would have to check the source but I think if you have thousands of nodes each with a hostname defined this will have a great impact on the performance.

The way I would do it, is to have a wildcard subdomain in iis. So that all subdomains get mapped to the same content node in umbraco. And on that content node you first check the subdomain and get the member with that name.

Cheers,
Tim

Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.