Page 1 of 1

managing subdomains

Posted: Tue Jan 18, 2011 2:31 pm
by Vegan
I was wondering, given a bunch of base domains, Apache of course can have as many subdomains as you want. No problem. Simply add more and more vhosts.

So given a web form and a simply box, and some code why not store the subdomains in MySQL? Then the code can generate a new httpd.conf file when a new sub-domain is added.

The database idea could be used for redirected sites where Apache does simple redirects to another IP address.

so fields I can think of include the subdomain, domain, and IP

Re: managing subdomains

Posted: Thu Jan 20, 2011 2:16 am
by Peter Kelly
I'm no wizz on this stuff but surely there is more to a subdomain than just adding it to httpd.conf?

Re: managing subdomains

Posted: Fri Jan 21, 2011 7:22 pm
by Vegan
I was thinking I should also feed it to BIND so that it will findable on the internet.