views:

342

answers:

3

How can I let web users create a subdomain on the fly for Windows Server 2008 for my website? My application is in MVC 1.0 and ASP.Net 3.5 with C#.

A: 

The most common way (in terms of theory) is to map *.domain.ext to your one web-application. It itself parses the request to see which subdomain is being used and therefore which "site" to show.

In practice, I'm not sure how simple this is with IIS or ASP.NET. When I still used ASP.NET, I used UrlRewritingNet.UrlRewrite. It was light-years ahead of the competition two years ago, and it still looks a pretty handy thing to have in a fight now.

Oli
A: 

If you just want to map wildcard you do that in IIS (and in the DNS), then you can parse the requested url to get the subdomain. Otherwise Clarify the question.

PQW