ASP.NET - how to create subdomain dynamically

Asked By Reena Jain on 11-May-10 05:08 AM

hi...

If my website is hosted using IIS 7 at http://www.domain.com/

I want to make a subdomain for every user.
So, a user 'abc' signs up, and automatically my code creates
http://billgates.domain.com/

I have a dedicated server with me and i want to create it diynamically, I listen about the wildcard. How to use this

thanks in advance...

Jinal Desai - LIVE replied to Reena Jain on 11-May-10 05:26 AM
Find following links useful..

http://forums.asp.net/t/874598.aspx

http://forums.iis.net/p/1043437/1459046.aspx

Hope this will help!
Phivos Stylianides replied to Reena Jain on 11-May-10 05:28 AM
This nice article seems to contain exactly what you want:
http://codebetter.com/blogs/brendan.tompkins/archive/2006/06/27/146875.aspx
DL M replied to Reena Jain on 11-May-10 06:02 AM
You should your sub domain in the same way you create a normal domain and point it to a directory on the server, it does not matter where do you point that web site home directory to unless the anonymous user as access over that directory. There is no need to use Rewrite module to create sub domain.
More info show this link
http://forums.asp.net/t/1426648.aspx