Date: Wed, 1 Jun 2005 10:57:44 +0200 From: Clement Laforet <sheepkiller@cultdeadsheep.org> To: apache@FreeBSD.org Subject: [Call for testers] support for multiple apache2 instances in startup script Message-ID: <20050601085744.GC86348@goofy.cultdeadsheep.org>
next in thread | raw e-mail | index | archive | help
--R+My9LyyhiUvIEro Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, This script allows you to run multiple apache2 instances. It works=20 like profiles in /etc/rc.d/jail. How install it: 1. fetch the script from: http://people.freebsd.org/~clement/apache/download/ports/devel/apache.sh and put it in ${PORTSDIR}/www/apache2/files. 2. install the script: # cp ${PREFIX}/etc/rc.d/apache2.sh ${PREFIX}/etc/rc.d/apache2.sh.old=20 # cd ${PORTSDIR}/www/apache2/ # make install-startup-script=20 3. Configure your apache2 <you should be able to do it by yourself ;o)> 4. Configure rc.conf - set your profiles : apache2_profiles=3D"apache1 apache2" - define your configuration files apache2_apache1_configfile=3D"/path/to/config/file1" apache2_apache2_configfile=3D"/path/to/config/file2" All apache2*_* variables can be overridden. It looks like: apache2*_${profile_name}_*. apache2_${profile_name}_enable is set=20 to "YES" by default. 5. Dealing with profiles: ${PREFIX}/etc/rc.d/apache2.sh <action> [profile] If no profile is defined, action is performed on all profiles. Notes: - When using profiles, PidFile directive is OVERRIDDEN. - script doesn't exit on error. Please share your opinion about=20 default behavior. - apache2_${profile_name}_configfile is mandatory Enjoy! clem --R+My9LyyhiUvIEro Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFCnXiIsRhfjwcjuh0RAmSDAKCDalXpLUo7NO0Jm7xkvUYP9yJhKgCfQKzN 1kUbdDnbofNygnngmKzs4tE= =jOd5 -----END PGP SIGNATURE----- --R+My9LyyhiUvIEro--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050601085744.GC86348>