Click to See Complete Forum and Search --> : ASP - Setting up a blog service...need help


cancer10
01-29-2007, 02:44 AM
I am trying to create a blog service where my visitors can create their own blogs which will host on my server. I want to give them their subdomain either as http://username.myserver.com or http://myserver.com/username

can u tell me an easy method of doing this. I actually dnt want to give out URL containing querystrings as their blog URL like http://myserver.com/index.asp?username=john

I want them to give out like http://myserver.com/username


Any ideas?

russell
01-29-2007, 09:11 AM
need to configure domain controller to map subdomain to IP or virtual directory on web server. But u will need to manually create each sub-domain -- or write a compiled app to create it, if u do it like http://username.myserver.com. the other way (http://myserver.com/username) is much easier -- use Scripting.FileSystemObject to create directory when user account is created. IIS Service account will need permission on parent directory for this to work.

mattyblah
01-29-2007, 05:12 PM
You could write an isapi filter to redirect to the appropriate folder. that would remove the need to create the subdomain. that isn't an easy task and I wouldn't recommend but hope that helps :)