Apache vhosts mysql
by rullzer on Aug.23, 2006, under Linux, Programming things
Currently i’m working on a module for apache wich allows you to store all of you virtualhosts in a mysql database. Wich (I think) is really nice because it allow you to add/remove vhosts on the fly even in a simple php script. And you do not have to restart apache. Wich also is a good thing right?
Anyway setting the docroot and the serveradmin is working well now. Currently working on the .htaccess part. And when that is finished i need to fix the logs.. The only problem is that appaches mod_log is well let’s say is a little fucked up not well documented. You would think there is a function you can call wich and give that function the path to log to, the modfe it logs in and the request structure but no…. So ah well i’ll probably end up writing my own logging function for the CustomLog combined one. Will keep you posted!!!








January 5th, 2008 on 1:33 pm
nice to hear what are u trying to do, but ..did u develope this shit 4 linux or winz or both ?
I also trying to make some changes under windz…but…it didn’t work very well.
best regards from romania.
February 17th, 2008 on 6:41 pm
i think you are doing a fab job if you achieve this. I tried a year ago and all seems to go mayhelm. Best of luck from the UK.
December 18th, 2008 on 12:37 pm
how has project gone so far
any testing or still slowing coming alone to private testing
February 15th, 2012 on 11:03 am
Thanks for sharing. Your post is a useful conrtibtuoin.