First page Back Continue Last page Summary Graphics
Apache
Example Module Structure
#include <http_config.h>
module MODULE_VAR_EXPORT bluestem_module = {
STANDARD_MODULE_STUFF,
bluestem_init, /* module initializer */
bluestem_create_dir_config, /* create per-dir config */
bluestem_merge_dir_config, /* merge per-dir config */
NULL, /* create per-server config */
NULL, /* merge per-server config */
bluestem_commands, /* table of config file commands */
NULL, /* [#8] MIME-type-dispatched handlers */
NULL, /* [#1] URI to filename translation */
bluestem_authenticate, /* [#4] validate user id from request */
bluestem_authorize, /* [#5] check if the user is ok here */
NULL, /* [#3] check access by host address */
NULL, /* [#6] determine MIME type */
NULL, /* [#7] pre-run fixups */
NULL, /* [#9] log a transaction */
NULL, /* [#2] header parser */
NULL, /* child_init */
NULL, /* child_exit */
NULL /* [#0] post read-request */
#ifdef EAPI
,
NULL, /* EAPI: add_module */
NULL, /* EAPI: remove_module */
NULL, /* EAPI: rewrite_command */
NULL /* EAPI: new_connection */
#endif
};