[SWLUG] Restart Apache from php

justin at discordia.org.uk justin at discordia.org.uk
Fri Jan 21 13:54:33 UTC 2005


On 21 Jan, Toby Maxwell-Lyte wrote:
> I guess I could store the desired domain names in a mysql db.
> I could write a perl script that checked this db for entries and then 
> created new virtual hosts accordingly. 
> I could then setup a cronjob to run this script every 5 minutes.

Apache does have support for multiple VirtualHosts without needing any
config file changes or restarting.

ive never tried it myself, but read here
http://httpd.apache.org/docs-2.0/vhosts/mass.html



More information about the Swlug mailing list