Writing Apache Modules
By L. Blunt Jackson, September 01, 2002
One reason for the Apache server's remarkable success is its modular architecture, which enables easy extension. So how do you go about writing Apache modules? Blunt shows how, illustrating key points of Apache design along the way.
Sep02: Writing Apache Modules
static const char* greeting;
static const char*
set_greeting(cmd_parms *cmd, void* empty, char* text)
{
greeting = text;
return NULL;
}
command_rec hw_cmds[] = {
{ "SetGreeting", set_greeting, NULL, RSRC_CONF, TAKE1, "Set Greeting" },
{ NULL }
};
Example 2: Apache command processor (1.3 and 2.0).