Communicator e3000 MPE/iX Release 6.5 Express 2 (Software Release C.65.02) (30216-90322)
Chapter 3 27
Technical Articles
Apache 1.3.9 for MPE/iX
directives:
AddModule mod_example.c
LoadModule example_module libexec/mod_example.so
The LoadModule directive takes two arguments. The first is the name of the module to
load. This is the module's structure name from the source file (e.g. mod_example.c). The
second argument is the path to the shared object file to load. The path can be relative to
the server root (/APACHE/PUB) as shown here, or it can be an absolute path.
EAPI
Apache 1.3.9 is built with an extended set of Apache APIs. This means that Apache also
expects these EAPIs to be built into any module it calls, including DSOs. This EAPI
feature was included in Apache 1.3.9 so that the same DSOs could be used by both Apache
and WebWise without the need to recompile.
When creating DSOs, you must compile with the -DEAPI option. This will include the
necessary EAPI header files. These header files are part of the Apache 1.3.9 distribution
and reside in /APACHE/PUB/include. The /APACHE/PUB/include directory also contains
the README.EAPI file. The README.EAPI file describes the functionality that is
available with EAPI such as more features in the mod_rewrite, mod_status, and
mod_proxy modules.
DSOs created with the -g -n options of bin/apxs will have a Makefile generated with the
-DEAPI option automatically included.
Additional Modules
The Apache 1.3.9 for MPE/iX contains all the modules in Apache 1.3.4 for MPE/iX as well
as five additional modules. To view the complete set of modules, execute the Apache
binary with the "-l" option:
shell/iX>/APACHE/PUB/HTTPD -l
The modules that are new to Apache 1.3.9 are:
• mod_proxy, for using the HP e3000 as a proxy server
• mod_rewrite, for large-scale translation of URLs to a new address
• mod_digest, a new browser authentication scheme (future browser feature)
• mod_vhost_alias, for easy use of large numbers of virtual hosts with similar
configurations
• mod_so, makes DSOs loadable
mod_proxy - With this module, Apache can act as a proxy server, or intermediary, when
clients make web server requests. Instead of a client making a direct request to a web
server, the client makes a request to the proxy server. The proxy server then makes the
actual request to the web server. The web server responds to the proxy server who then
forwards the response back to the original client.
The proxy server can also cache documents and resources that pass through the proxy
interface. If the proxy server has a copy of a requested document, it can return the copy
immediately without contacting the web server.