Hi all,
I would like to propose a change to apachectl (for 2.0 although
work with 1.3 as well)
I like using <IfDefined> toggles in the default httpd.conf files
I provide to customers (for things like Tomcat connectors, PHP...),
The problem with the toggles is getting them on the command line.
With a very minor generic change to apachectl the options can be
put into bin/envvars (which is already read by apachectl) and
added to the invocation of httpd. The nice thing about this approach
is that you don't have to hack apachectl with specific options, and
envvars is much much easier to parse & modify.
If HTTPD_OPTIONS is not set, it defaults to blank which is just fine.
Proposed patch follows:
regards,
Dave Hill
*** apachectl.orig Tue Aug 27 13:58:52 2002
--- apachectl Tue Aug 27 14:02:30 2002
***************
*** 54,68 ****
case $ARGV in
start|stop|restart|graceful)
! $HTTPD -k $ARGV
ERROR=$?
;;
startssl|sslstart|start-SSL)
! $HTTPD -k start -DSSL
ERROR=$?
;;
configtest)
! $HTTPD -t
ERROR=$?
;;
status)
--- 54,68 ----
case $ARGV in
start|stop|restart|graceful)
! $HTTPD -k $ARGV $HTTPD_OPTIONS
ERROR=$?
;;
startssl|sslstart|start-SSL)
! $HTTPD -k start -DSSL $HTTPD_OPTIONS
ERROR=$?
;;
configtest)
! $HTTPD -t $HTTPD_OPTIONS
ERROR=$?
;;
status)
***************
*** 72,78 ****
$LYNX $STATUSURL
;;
*)
! $HTTPD $ARGV
ERROR=$?
esac
--- 72,78 ----
$LYNX $STATUSURL
;;
*)
! $HTTPD $ARGV $HTTPD_OPTIONS
ERROR=$?
esac