Module mod_example

Important: Information for this topic supports the latest PTF levels for HTTP Server for i5/OS . It is recommended that you install the latest PTFs to upgrade to the latest level of the HTTP Server for i5/OS. Some of the topics documented here are not available prior to this update. See http://www.ibm.com/servers/eserver/iseries/software/http/services/service.htm Link outside Information Center for more information.

Summary

The module mod_example provides a simple example to demonstrate the use of the Apache APIs.

Directive

Example

Module: mod_example
Syntax: Example
Default: none
Context: server config, virtual host, directory, .htaccess
Override: Options
Origin: Apache
Usage Considerations: A LoadModule is required in the configuration file prior to using the directive. The statement should be as follows:

LoadModule example_module /QSYS.LIB/QHTTPSVR.LIB/QZSREXAMPL.SRVPGM

Example: Example

This directive sets a demonstration flag. The example module's content handler displays the flag. There are no arguments. If you browse a URL to which the example content-handler applies, the routines within the module and how and in what order they were called to service the document request are displayed.