Included is an update to the handler.html to fix a few problems (bad grammar, missing directives, unnecessary repetition of the directive definitions, etc). It also puts the file in a similar format to what I used for env.html. The main difference in the format is that, instead of using two <ul>s for the "Related modules" and "Related directives", I have put them in a small, two column table. I think this makes things significantly clearer.
Suggestions and comments are welcome. If nobody objects to the new format of the "Related" table, I will change env.html to match. -- Joshua Slive [EMAIL PROTECTED] http://finance.commerce.ubc.ca/~slive/ Phone: (604) 822-1871Title: Apache's Handler Use
Apache's Handler Use
What is a HandlerA "handler" is an internal Apache representation of the action to be performed when a file is called. Generally, files have implicit handlers, based on the file type. Normally, all files are simply served by the server, but certain file types are "handled" separately. Apache 1.1 adds the ability to use handlers explicitly. Based on either filename extensions or on location, handlers can be specified without relation to file type. This is advantageous both because it is a more elegant solution, and because it also allows for both a type and a handler to be associated with a file. (See also Files with Multiple Extensions.) Handlers can either be built into the server, included in a module, or they can be added with the Action directive. The built-in handlers in the standard distribution are as follows:
ExamplesModifying static content using a CGI scriptThe following directives will cause requests for files with the
Action add-footer /cgi-bin/footer.pl AddHandler add-footer html Then the CGI script is responsible for sending the originally
requested document (pointed to by the Files with HTTP headersThe following directives will enable the <Directory /web/htdocs/asis> SetHandler send-as-is </Directory> Programmer's NoteIn order to implement the handler features, an addition has been
made to the Apache API that you may wish to
make use of. Specifically, a new record has been added to the
char *handler If you wish to have your module engage a handler, you need only to
set |