Book HomeApache: The Definitive GuideSearch this book

Chapter 11. What's Going On?

Contents:

AddModuleInfo
Status
Server Status
Server Info
Logging the Action

Apache is able to report to a client a great deal of what is happening to it internally. The necessary module is contained in the mod_info.c file, which should be included at build time. It provides a comprehensive overview of the server configuration, including all installed modules and directives in the configuration files. This module is not compiled into the server by default. To enable it, either load the corresponding module if you are running Win32 or Unix with DSO support enabled, or add the following line to the server build Config file and rebuild the server:

AddModule modules/standard/mod_info.o

It should also be noted that if mod_info is compiled into the server, its handler capability is available in all configuration files, including per-directory files (e.g., .htaccess). This may have security-related ramifications for your site.

11.1. AddModuleInfo

AddModuleInfo module-name string
Server config, virtual host

This allows the content of string to be shown as HTML-interpreted additional information for the module module-name. Example:

AddModuleInfo mod_auth.c 'See <A HREF="http://www.apache.org/docs/mod/
    mod auth.html">http://www.apache.org/docs/mod/mod_auth.html</A>'


Library Navigation Links

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