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.
Web Servers for Microsoft Windows<br />
4.3.3 Option 2: Apache and CGI Modules with NSD (nph-<strong>CSP</strong>cgi.exe)<br />
You should configure the Web server such that it recognizes <strong>CSP</strong> requests (files of type .csp, .cls, and .zen) and passes<br />
them to the <strong>CSP</strong> gateway for processing.<br />
The Web server configuration file (httpd.conf) is in the following directory:<br />
C:\Program Files\Apache Group\Apache\conf<br />
Add the following section to the end of httpd.conf:<br />
<br />
AllowOverride None<br />
Options FollowSymLinks ExecCGI<br />
Order allow,deny<br />
Allow from all<br />
<br />
ScriptAliasMatch /*\.([Cc][Ss][Pp]|[Cc][Ll][Ss])$ \<br />
"c:/MyCache/csp/bin/nph-<strong>CSP</strong>cgi.exe"<br />
Alias /csp/ c:/MyCache/csp/<br />
<br />
AllowOverride None<br />
Options MultiViews FollowSymLinks ExecCGI<br />
Order allow,deny<br />
Allow from all<br />
<br />
Deny from all<br />
<br />
<br />
ScriptAlias /csp-bin/ "c:/MyCache/csp/bin/"<br />
ScriptAliasMatch /csp/bin/Systems/Module.cxw \<br />
"c:/MyCache/csp/bin/nph-<strong>CSP</strong>cgiSys.exe"<br />
ScriptAliasMatch /csp/bin/RunTime/Module.cxw \<br />
"c:/MyCache/csp/bin/nph-<strong>CSP</strong>cgi.exe"<br />
<br />
AllowOverride None<br />
Options None<br />
Order allow,deny<br />
Allow from all<br />
<br />
Allow from all<br />
<br />
<br />
The above configuration block relies on the Regular Expressions (regex) processor being available to the Apache environment.<br />
Sometimes this is not the case (particularly with Windows 2000 systems) and <strong>CSP</strong> files are consequently not served<br />
(File not found errors are returned). To remedy this situation, associate the (virtual) root location of your <strong>CSP</strong> applications<br />
with the CGI module instead of making the association through the <strong>CSP</strong> file extensions. For example, your <strong>CSP</strong><br />
applications are in /csp. To associate the <strong>CSP</strong> CGI module with files under /csp, replace the following configuration block:<br />
<br />
AllowOverride None<br />
Options FollowSymLinks ExecCGI<br />
Order allow,deny<br />
Allow from all<br />
<br />
ScriptAliasMatch /*\.([Cc][Ss][Pp]|[Cc][Ll][Ss])$<br />
"c:/MyCache/csp/bin/nph-<strong>CSP</strong>cgi.exe"<br />
with<br />
<br />
AllowOverride None<br />
Options FollowSymLinks ExecCGI<br />
Order allow,deny<br />
Allow from all<br />
<br />
ScriptAlias /csp "c:/MyCache/csp/bin/nph-<strong>CSP</strong>cgi.exe"<br />
These directives work for URLs of the form:<br />
http://localhost:/csp/*.csp<br />
94 <strong>CSP</strong> <strong>Gateway</strong> <strong>Configuration</strong> <strong>Guide</strong>