[Call for testers] support for multiple apache2 instances in
startup script
Clement Laforet
sheepkiller at cultdeadsheep.org
Wed Jun 1 01:57:47 PDT 2005
Hi,
This script allows you to run multiple apache2 instances. It works
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
# cd ${PORTSDIR}/www/apache2/
# make install-startup-script
3. Configure your apache2
<you should be able to do it by yourself ;o)>
4. Configure rc.conf
- set your profiles :
apache2_profiles="apache1 apache2"
- define your configuration files
apache2_apache1_configfile="/path/to/config/file1"
apache2_apache2_configfile="/path/to/config/file2"
All apache2*_* variables can be overridden. It looks like:
apache2*_${profile_name}_*. apache2_${profile_name}_enable is set
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
default behavior.
- apache2_${profile_name}_configfile is mandatory
Enjoy!
clem
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-apache/attachments/20050601/4abc9010/attachment.bin
More information about the freebsd-apache
mailing list