Handler for HTTP Server

In the IBM® HTTP Server for i, a handler is an internal representation of the action that is performed when a file or URL is requested.

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. For example, you may use a type of application/x-httpd-cgi to invoke CGI scripts.

Handlers are unrelated to file type. They are either based on filename extensions or on location. This allows both a type and a handler to be associated with a file (see Files with Multiple Extensions).

Handlers are either built into the server, built into a module, or are added with the Action directive. The built-in handlers are:

  • default-handler: Send the file using the default_handler(), which is the handler used by default to handle static content. (core)
  • send-as-is: Send file with HTTP headers as is (mod_asis).
  • cgi-script: Treat the file as a CGI script (mod_cgi).
  • imap-file: Imagemap rule file (mod_imagemap).
  • type-map: Parse as a type map file for content negotiation (mod_negotiation).
  • proxy-server: Determine if file is local (mod_proxy)