Annoyed by the fact, that apachectl configtest e.a. do *not* use
-DSSL, and therefore choke on the SSL parts of httpd.conf, I have
created a small patch for apachectl adding a -ssl option.
With this patch applied, I can now type
apachectl -ssl configtest
or apachectl -ssl graceful
or apachectl -ssl start
which is, IMHO, a lot more convenient.
I have tested this patch with the apachectl file created by
Apache 1.3.9 with mod_ssl 2.4.8-1.3.9 or 2.4.9-1.3.9. YMMV.
Make sure your mail reader does not wrap the following lines.
Regards,
Stefan
--- apachectl Thu Nov 25 16:41:01 1999
+++ apachectl Thu Nov 25 18:17:58 1999
@@ -39,6 +39,13 @@
# -------------------- --------------------
# |||||||||||||||||||| END CONFIGURATION SECTION ||||||||||||||||||||
+case $1 in
+-ssl|-SSL|-DSSL)
+ HTTPD="$HTTPD -DSSL"
+ shift
+ ;;
+esac
+
ERROR=0
ARGV="$@"
if [ "x$ARGV" = "x" ] ; then
@@ -161,11 +168,12 @@
fi
;;
*)
- echo "usage: $0
(start|stop|restart|fullstatus|status|graceful|configtest|help)"
+ echo "usage: $0 [-ssl]
+(start|stop|restart|fullstatus|status|graceful|configtest|help)"
cat <<EOF
+-ssl - enable SSL for subsequent command(s)
start - start httpd
-startssl - start httpd with SSL enabled
+startssl - start httpd with SSL enabled (obsolete)
stop - stop httpd
restart - restart httpd if running by sending a SIGHUP or start if
not running
--
Stefan H. Holek, [EMAIL PROTECTED]
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]