View Full Version : ASP - How to create Subdomain

01-27-2007, 03:46 PM

Does anyone know how do I create a subdomain using ASP?

I run my own server so I have the full access to it (if that is needed for the same)


01-29-2007, 10:07 PM
u mean, just like:

SomeThing.Domain.com ?

on your dns server?

01-30-2007, 04:45 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?

01-30-2007, 02:42 PM
You can use URL Rewriting to change the appearance of a URL

01-30-2007, 03:12 PM
I run a similar service on my site,
I've installed http://www.powerdns.com/ which runs on a MySQL/MsSQL backend, i then just insert a host name when a new user registers.

or, you could try mod rewrite like degsy suggested, however I've never tried that in IIS.