25.01.2015 Views

CSP Gateway Configuration Guide - InterSystems Documentation

CSP Gateway Configuration Guide - InterSystems Documentation

CSP Gateway Configuration Guide - InterSystems Documentation

SHOW MORE
SHOW LESS

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 />

prefork.c<br />

http_core.c<br />

mod_mime.c<br />

mod_status.c<br />

mod_autoindex.c<br />

mod_asis.c<br />

mod_cgi.c<br />

mod_negotiation.c<br />

mod_dir.c<br />

mod_imap.c<br />

mod_actions.c<br />

mod_userdir.c<br />

mod_alias.c<br />

mod_csp.c<br />

B.2.4.3 Runtime <strong>Configuration</strong><br />

Edit the Apache configuration file httpd.conf. For the standard Apache distribution this file is in:<br />

/usr/apache/conf<br />

For Red Hat Linux, the runtime version of httpd.conf is in:<br />

/etc/httpd/conf<br />

Assuming that you wish to invoke the <strong>CSP</strong> engine for requested files that contain a .csp, .cls, or .zen extension, add the<br />

following section to the end of httpd.conf:<br />

<br />

SetHandler csp-handler<br />

<br />

ScriptAliasMatch /csp/bin/Systems/Module.cxw \<br />

"/opt/cspgateway/csp/bin/nph-<strong>CSP</strong>cgiSys"<br />

ScriptAliasMatch /csp/bin/RunTime/Module.cxw \<br />

"/opt/cspgateway/csp/bin/nph-<strong>CSP</strong>cgi"<br />

Alias /csp/ /opt/cspgateway/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 />

Deny from all<br />

<br />

<br />

ScriptAlias /csp-bin/ "/opt/cspgateway/csp/bin/"<br />

<br />

AllowOverride None<br />

Options None<br />

Order allow,deny<br />

Allow from all<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 and <strong>CSP</strong> files are consequently not served (File not founderrors are returned).<br />

To remedy this situation, replace the following configuration block:<br />

<br />

SetHandler csp-handler<br />

<br />

with:<br />

AddHandler csp-handler<br />

Note that all requests to Apache are serviced by a set of modules invoked in a predefined sequence. The <strong>CSP</strong> module is<br />

one of the first modules invoked, provided its definition was added near the end of the <strong>Configuration</strong> file as suggested.<br />

Restart Apache after making changes to httpd.conf.<br />

136 <strong>CSP</strong> <strong>Gateway</strong> <strong>Configuration</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!