[H-GEN] libapache-mod-ssl & apache restart
Mark Suter
suter at zwitterion.humbug.org.au
Mon Oct 28 08:52:00 EST 2002
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Patrick,
> I've configured my machine with squirrelmail and libapache-mod-ssl. This
> works fine, however for some reason I cannot connect to the server after a
> period of time, or following a reconnection and change of ip address of
> the server.
If you need to specify an IP address in your config (likely),
then you'll need to do something similar to the following to
update the config file (untested):
old=$(cat /etc/ppp/last-ip-address)
new=$(ifconfig ppp0 | perl -ne'/inet addr:(\S+)/ and print $1')
echo $new > /etc/ppp/last-ip-address
perl -i.bak -pe "s/$old/$new/g" /etc/apache/httpd.conf
> I've configured my ssl certificates so that I don't need to supply a
> passphrase when I start apache, and in my /etc/ppp/ip-up.d directory
> (pppoe) I've put a script which stops & starts apache like thus:
>
> /etc/init.d/apache stop
> sleep 20
> /etc/init.d/apache start
>
> This doesn't produce the desired result. Is there something I'm missing,
> in relation to apache reloading details?
This is generally not the recommended procedure. You will have a
lot more luck with:
# apachectl configtest && apachectl graceful
Syntax OK
/usr/sbin/apachectl graceful: httpd gracefully restarted
Yours sincerely,
- -- Mark John Suter | I know that you believe you understand
suter at humbug.org.au | what you think I said, but I am not sure
gpg key id 2C71D63D | you realise that what you heard is not
mobile 0411 262 316 | what I meant. Robert J. McCloskey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Check Keyservers or http://zwitterion.org/keys/
iD8DBQE9vUEARYso2ixx1j0RAim+AJ9SKbMqfjtN2tyjhcHOOWsV6rvsLACgkXXr
sm91NCliv+zTUmfvYq9u1XY=
=nAeX
-----END PGP SIGNATURE-----
--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'. See http://www.humbug.org.au/
More information about the General
mailing list