From: Daniel Gruno
-This document will discuss how you can easily create modules for the Apache
+This document will discuss how you can create modules for the Apache
HTTP Server 2.4, by exploring an example module called
mod_example. In the first part of this document, the purpose
of this module will be to calculate and print out various digest values for
@@ -238,6 +238,8 @@ can create. Some other ways of hooking are:
ap_hook_pre_config: Place a hook that executes before any configuration data has been read (very early hook)ap_hook_post_config: Place a hook that executes after configuration has been parsed, but before the server has forkedap_hook_translate_name: Place a hook that executes when a URI needs to be translated into a filename on the server (think mod_rewrite)ap_hook_quick_handler: Similar to ap_hook_handler, except it is run before any other request hooks (translation, auth, fixups etc)ap_hook_log_transaction: Place a hook that executes when the server is about to add a log entry of the current requestr->args (char*): Contains the query string of the request, if anyr->headers_in (apr_table_t*): Contains all the headers sent by the clientr->connection (conn_rec*): A record containing information about the current connectionr->user (char*): If the URI requires authentication, this is set to the username providedr->useragent_ip (char*): The IP address of the client connecting to usr->pool (apr_pool_t*): The memory pool of this request. We'll discuss this in the "
-Memory management" chapter.r->pool (apr_pool_t*): The memory pool of this request. We'll discuss this in the
+"Memory management" chapter.
A complete list of all the values contained with in the request_req structure can be found in
@@ -1277,10 +1280,11 @@ two configurations and decide how they are to be merged: