You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by cn...@nycap.rr.com on 2004/07/06 15:09:34 UTC

[users@httpd] Clean shutdown of httpd

When I shut down httpd, any browsers pointed at it remain frozen on the last page they displayed.  Is there any way to get httpd to server out an "I'm going away" page so that the user gets a nice notification that something happened instead of the browser just seeming to go kerflewy?


---------------------------------------------------------------------
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] Clean shutdown of httpd

Posted by Joshua Slive <js...@gmail.com>.
On Tue, 06 Jul 2004 09:09:34 -0400, cnelson@nycap.rr.com
<cn...@nycap.rr.com> wrote:
> When I shut down httpd, any browsers pointed at it remain frozen on the last page they displayed.  Is there any way to get httpd to server out an "I'm going away" page so that the user gets a nice notification that something happened instead of the browser just seeming to go kerflewy?


Instead of shutting down httpd, gracefully restart it with a new
config file that has
AliasMatch .* /full/path/to/gone-for-now.html
where gone-for-now contains whatever message you want.

You can do that cleanly by putting it inside an <IfDefine> and using a
-D command line argument to apache.

Joshua.

---------------------------------------------------------------------
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