Book HomeApache: The Definitive GuideSearch this book

3.12. Restarts

A webmaster will sometimes want to kill Apache and restart it with a new Config file, often to add or remove a virtual host. This can be done the brutal way, by stopping httpd and restarting it. This method causes any transactions in progress to fail in what may be an annoying and disconcerting way for the clients. A recent innovation in Apache was a scheme to allow restarts of the main server without suddenly chopping off any child processes that were running.

Figure 3.12 There are three ways to restart Apache under Unix:

Figure 3.12 Under Win32 it is enough to open a second MS-DOS window and type:

apache -k shutdown|restart

Figure 3.12 See Section 2.2, "Apache's Flags" in Chapter 2, "Our First Web Site".



Library Navigation Links

Copyright © 2001 O'Reilly & Associates. All rights reserved.