managing subdomains
Posted: Tue Jan 18, 2011 2:31 pm
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
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