I really like the simple sign-up process of blogger.com, and I was wondering how to achieve the effect of allowing a new sign-up user to create a ready-to-go subdomain in real time?
To clarify, the blogger.com registration process allows a new user to dynamically create a subdomain of their choice (if available) for the domain blogspot.com. Seconds later, after the sign-up process has completed, you can visit your new website at http://<your chosen subdomain>.blogspot.com. V. nice.
I'm particularly interested because I'm toying with a website product/service offering (aren't we all!) that would benefit from the same.
I'm assuming that this would require minor on-the-fly modifications to http.conf and/or the zone file for the domain, plus almost certainly a re-read/load of (at least) httpd.conf immediately after the necessary changes have been applied.
Just to complicate things a little further , I'd like that all the (potentially many) subdomains that users create are dynamically pointed/parked over a sub-folder of the primary domain, eg.:
- www.mycompany.com is the primary domain and hosting account
- www.mycompany.com/generic/ is the dir where I store generic code for all the subdomains
- all subdomains are pointed/parked over www.mycompany.com/generic, thus:
xyz.mycompany.com => www.mycompany.com/generic/
abc.mycompany.com => www.mycompany.com/generic/
123.mycompany.com => www.mycompany.com/generic/
Big ask I know, but I'd be grateful for any hints or guidance whatsoever. I know my way fairly well around http.conf, and I currently use a WHM/cPanel interface to perform minor (ie. non-adventurous) editing of DNS zone files. This of course is on a dedicated server (hosted incidentally by those very nice people over at Ventures Online who also host this forum) to which I have root access.
Thanks v. much.