I want to replicate my virtual machine and put it behind a load balancer.
Apache1 Apache2 ....ApacheN | | | ------------------------- LoadBalancer
I'd like to use only ONE configuration file for virtual hosts (actually a directory of conf files with Include in each httpd.conf), ONE log file and a common DocumentRoot directory for all instances. Is that possible, just sharing some directory between the virtual machines and configuring each Apache accordingly?
Or there will be some conflict with file opening and writing?
Is there maybe a better way of maintaining all the machines with the same configuration?
The only other thing I can think of, it's a script that copies a master configuration and restarts all the Apache instances. And also some script to merge all the logs...
Any suggestion welcome.
PS sorry for posting this first on stackoverflow, where it is in hold and doesn't get moved here...