Apache2 Multiple Instance Daemon

view story

http://forums.opensuse.org – I need to set up several independent instances of apache2 listening on different ip address/port combinations. I found an article that detailed a few steps on how to accomplish this with a single installation and changing various scripting values. Arnold’s wor(l)ds » Running multiple instances of Apache I believe I can modify this tutorial for opensuse and use it to start, stop and restart the apache2 instances independently. I am planning on rewriting the apache2 daemon script /etc/init.d/apache2 so that it takes an extra argument that is the instance name. For example: $ /etc/init.d/apache2 INSTANCE_NAME start This command would start the apache2 daemon for the INSTANCE_NAME instance. Each instance will have it's own log directory, pid, config dir, etc. These settings will need to be set in the /etc/init.d/apache2 script. Another script that may need to be changed is the apache2ctl script located in /usr/sbin. I believe that if I add an extra argument to this script I can specify the correct apache2 pid and log files as well. My question for the community is, does anyone see a problem with my proposed solution? I am not a veteran apache2 admin and any tips would be greatly appreciated. Thanks in advance! (Distributions)