CSP Gateway Configuration Guide - InterSystems Documentation
CSP Gateway Configuration Guide - InterSystems Documentation
CSP Gateway Configuration Guide - InterSystems Documentation
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Atypical <strong>Configuration</strong>s for UNIX®, Linux, and Mac OS X<br />
B.2.2 Atypical Option 1: Apache API Module with NSD (mod_csp22.so)<br />
If the <strong>CSP</strong> module is supplied with your distribution as a pre-built shared object (mod_csp22.so or mod_csp2.so), then<br />
proceed to the section on configuration. To build the shared object from the supplied source file mod_csp.c choose Method<br />
1 or Method 2 below. Method 1 is preferred.<br />
Use module mod_csp22.so for Apache Version 2.2.x and mod_csp2.so for Apache Version 2.0.x.<br />
Be sure to read the following instructions regarding the creation of shared objects in conjunction with the specific documentation<br />
contained within your Apache distribution. Note that the instructions given here assume that the root directory for<br />
the Apache installation is apache. In practice, this directory name usually has the Apache version number appended to it.<br />
The module source file supplied (mod_csp.c) is fully compliant with both Apache v2.2.x and Apache V2.0.x.<br />
B.2.2.1 Method 1: Building the <strong>CSP</strong> Module as Shared Object with apxs (APache eXtenSion) Tool<br />
The following command builds and installs the shared library, mod_csp.so, in the Apache /modules directory using the<br />
Apache extension tool, apxs. It also adds a directive to load the module to the Apache configuration file /conf/httpd.conf.<br />
apxs -I -a –c mod_csp.c<br />
To be consistent with the instructions in this document you may want to rename this module mod_csp2.so for Apache<br />
Version 2.0.x.<br />
Alternatively, mod_csp2.so may be built directly as follows:<br />
apxs –c –o mod_csp2.so mod_csp.c<br />
Install the shared-object produced binary in the following directory: /opt/cspgateway/csp/bin.<br />
B.2.2.2 Method 2: Building the <strong>CSP</strong> Module as Shared Object Manually<br />
Perform the following steps to manually build the <strong>CSP</strong> module as a shared object:<br />
1. Install the module source file mod_csp.c in the following directory: /usr/apache/src/modules/extra<br />
2. Return to the /usr/apache/src directory and edit the <strong>Configuration</strong> file. Near the end of this file, locate the following<br />
line:<br />
# AddModule modules/example/mod_example.o<br />
After this line, add the following line:<br />
ShareModule modules/extra/mod_csp.so<br />
3. Configure the build process using the following command:<br />
./Configure<br />
4. Build the shared object using the following command:<br />
make<br />
5. This produces the shared object mod_csp.so in directory: /usr/apache/src/modules/extra.<br />
To be consistent with the instructions in this document you may want to rename this module as mod_csp2.so for Apache<br />
Version 2.0.x and mod_csp22.so for Apache Version 2.2.x. This guide also uses /opt/cspgateway/csp/bin as the default<br />
install directory for this module.<br />
126 <strong>CSP</strong> <strong>Gateway</strong> <strong>Configuration</strong> <strong>Guide</strong>