views:

19

answers:

1

Hello everyone,

I'm about to start building a subscription based website that will function much like 37signals offerings in terms of users paying a monthly fee to use the site.

But in my case I would like for them to be able to use their own hosted domain names and have them point to my server.

Is this possible? How do i link up the domain name with their account on my server?

Thanks a mil!

EDIT: This site will be made using PHP

+1  A: 

This should be possible.

You need to get the user to setup a A record or CNAME record to point their domain name to you server.

You haven't said what language you are developing the site, but most languages should let you find out the requested host, eg in PHP you would use $_SERVER['HTTP_HOST'] which would return the request domain.

You can then use this to customise the experience appropriately.

Twelve47
Thanks for the help! Yes, the site will be using PHP. Couldn't they just point to my servers by pointing to my nameserver?
There is one authoritive name server per domain, so if they want to use www.theirsite.com and yourproject.theirsite.com then they would have to manage the domain themselves.If you set up clients.yoursite.com you can tell them to setup a CNAME record to point to clients.yoursite.com, then if your server ever changes IP address in future you would just need to change clients.yoursite.com and all of the client sites would automatically point to the new ip address.
Twelve47