Randy Barlow schrieb:
Hi all, I am trying to get two instances of apache to run using the
newer 2.2 version for my BackupPC server web interface.
I'd love to see standardized service multiplexing on gentoo. There were implementations for mysql where you can specify multiple instances in conf.d/mysql but without seperated start/stop/restart.

We have implemented this for an inhouse java app having a bash array in conf.d like:

<appname>_<instname1> = (
  "<param1>=<value1>"
  "<param2>=<value2>"
  ...
)

<appname>_<instname2> = (
...
)

and a link <appname>.<instname> -> <appname> in init.d for each instance like the net.xx scripts do. To make this work for apache you'd need logic to override "Listen" and probably other settings in httpd.conf. A seperate vhost.d for each instance might be appropriate.

made up sample config:

apache2_frontend = (
  "port=193.114.114.89:80"
  "opts=-D SSL -D LDAP"
  "usergroup=apache:apache"
  "config=/etc/apache2/apache2_frontend.conf"
)

apache2_backend1 = (
  "port=127.0.0.1:1234"
  "opts=-D PHP5 -D DAV"
  "usergroup=user1:user1"
  "config=/home/user1/apache_backend1.conf"
)

in combination with sudo:
user1 localhost=(ALL) NOPASSWD: /etc/init.d/apache2.backend1

This could be useful for proxied setups where you run user controlled backends to seperate execution privileges.

cheers
 Paul
--
[EMAIL PROTECTED] mailing list

Reply via email to