You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Alain Schoenmakers <as...@gti-ia-zo.nl> on 2006/11/15 09:30:57 UTC

[users@httpd] automatic reload of apache.conf

Hi All,

I was wondering if apache has something like a auto reload
feature of it configuration. The following has happend :

I edited my configuration (apache.conf) and altered the values
of MaxServers and keep-alive time. I saved the configuration but
DID NOT start and stop or restart the apache server(on purpose).

After 2 days my apache server was down (bad gateway), because of an 
error in the configuration I edited. I think this means the edited 
configuration file was loaded without an restart of the apache server
or the host system.

How is the possible ??

Thanx in advance,
Alain


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] automatic reload of apache.conf

Posted by "Neil A. Hillard" <ne...@agustawestland.com>.
Hi,

Alain Schoenmakers wrote:
> I was wondering if apache has something like a auto reload
> feature of it configuration. The following has happend :
> 
> I edited my configuration (apache.conf) and altered the values
> of MaxServers and keep-alive time. I saved the configuration but
> DID NOT start and stop or restart the apache server(on purpose).
> 
> After 2 days my apache server was down (bad gateway), because of an
> error in the configuration I edited. I think this means the edited
> configuration file was loaded without an restart of the apache server
> or the host system.
> 
> How is the possible ??

More than likely when your logs were rotated. Apache won't reload its
config unless told to.

You'll probably find something like:

/bin/kill -USR1 `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || tru
e

if you're running logrotate.

HTH,


				Neil.

-- 
Neil Hillard                    neil.hillard@agustawestland.com
AgustaWestland                  http://www.whl.co.uk/

Disclaimer: This message does not necessarily reflect the
            views of Westland Helicopters Ltd.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org