Write and build dynamic modules on Windows

To write a module that will work with the server for Windows NT, you must install the source code during the installation of the server. This can be accomplished by selecting "Custom" install and ensuring that "Apache Source" is checked.

What source is included in the install

When you install the source, you will find a src directory created in the server root directory. This directory will contain the following directories:

Additionally, you will find a apachesrc directory in the server root. This directory contains a .zip file of the original Apache source code upon which the IBM HTTP Server is based. Be aware that you cannot build the binaries that are distributed from IBM with this source code. Due to legal restrictions on some of the technology included in the IBM binaries, source code cannot be supplied.

How to build a module

To successfully build a module to run with IBM HTTP Server, you must do the following:

  1. Add the src\include directory to your list of include paths.
  2. Link with the ApacheCore.lib file found in the src\CoreR directory.

Please note the following restrictions when building a module to run with IBM HTTP Server:

  1. You must link against the ApacheCore.lib binary that is installed by the server installation program in the src\CoreR directory.
  2. You must use the header files supplied by the server installation program in the src\include and os\win32 directories.
  3. You cannot modify or add fields to the header files in the src\include or os\win32 directories.