From owner-freebsd-apache@FreeBSD.ORG Wed Jun 1 08:57:47 2005 Return-Path: X-Original-To: apache@FreeBSD.org Delivered-To: freebsd-apache@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 97A0116A41C for ; Wed, 1 Jun 2005 08:57:47 +0000 (GMT) (envelope-from sheepkiller@cultdeadsheep.org) Received: from goofy.cultdeadsheep.org (charon.cultdeadsheep.org [80.65.226.72]) by mx1.FreeBSD.org (Postfix) with SMTP id 7864F43D49 for ; Wed, 1 Jun 2005 08:57:45 +0000 (GMT) (envelope-from sheepkiller@cultdeadsheep.org) Received: (qmail 43305 invoked by uid 1000); 1 Jun 2005 10:57:44 +0200 Date: Wed, 1 Jun 2005 10:57:44 +0200 From: Clement Laforet To: apache@FreeBSD.org Message-ID: <20050601085744.GC86348@goofy.cultdeadsheep.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="R+My9LyyhiUvIEro" Content-Disposition: inline User-Agent: Mutt/1.5.6i Cc: Subject: [Call for testers] support for multiple apache2 instances in startup script X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jun 2005 08:57:47 -0000 --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 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 [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--