What's the proper way to setup a client chosen domain name?

Posted by Greg on Server Fault See other posts from Server Fault or by Greg
Published on 2012-06-14T23:58:01Z Indexed on 2012/06/15 21:18 UTC
Read the original article Hit count: 260

Filed under:
|
|

In my web app, I'm toying with the idea of giving my user the opportunity to select a subdomain of their choosing, so they could select something like:

foobar.myapp.com

where foobar is their chosen subdomain. What is the proper way to go about setting up something like this? .htaccess? Have some api for writing virtual hosts? The application would still always map to one directory on my sever, I just want to give theme a custom URL.

© Server Fault or respective owner

Related posts about apache2

Related posts about .htaccess