CSP Gateway Configuration Guide
Alternative Configurations for OpenVMS
[Back] [Next]
   
Server:docs1
Instance:LATEST
User:UnknownUser
 
-
Search:    

This section describes how to configure an atypical configuration for OpenVMS.

Alternative Option 1: OpenVMS and CGI Modules with NSD (CSPCGI.EXE)
Configure the web server so that it recognizes CSP requests (files of type .csp, .cls, and .zen) and passes them to the CSP Gateway for processing.
The web server configuration file (HTTPD.CONF) is in the following directory:
APACHE$ROOT:[CONF]
  1. Add the following section to the end of HTTPD.CONF:
    <LocationMatch "/*\.([Cc][Ss][Pp]|[Cc][Ll][Ss]|[Zz][En][Nn])$">
            AllowOverride None
            Options FollowSymLinks ExecCGI
            Order allow,deny
            Allow from all
    </LocationMatch>
    ScriptAliasMatch /*\.([Cc][Ss][Pp]|[Cc][Ll][Ss])$ "/apache$common/csp/bin/nph-CSPcgi"
    ScriptAliasMatch /csp/bin/Systems/Module.cxw "/apache$common/csp/bin/nph-CSPcgiSys"
    ScriptAliasMatch /csp/bin/RunTime/Module.cxw "/apache$common/csp/bin/nph-CSPcgi"
    Alias /csp/ /apache$common/csp/
    <Directory "/apache$common/csp">
            AllowOverride None
            Options MultiViews FollowSymLinks ExecCGI
            Order allow,deny
            Allow from all
            <FilesMatch "\.(log|ini|pid|exe)$">
                Deny from all
            </FilesMatch>
    </Directory>
    ScriptAlias /csp-bin/ "/apache$common/csp/bin/"
    <Directory "/apache$common/csp/bin/">
            AllowOverride None
            Options None
            Order allow,deny
            Allow from all
    </Directory>
  2. Restart SWS/Apache after making these changes to the configuration.
Registering Additional File Types with CSP
To configur additional file types to be processed by CSP, include the new file extension(s) in the list of usual file extensions (such as .csp, .cls, .zen) to be processed by the CGI module. For example, add the new file extensions to the following line:
ScriptAliasMatch /*\.([Cc][Ss][Pp]|[Cc][Ll][Ss]|[Zz][En][Nn])$ "/apache$common/csp/bin/nph-CSPcgi"
The following directive can be used to map requests for all files to CSP for a given path.
ScriptAliasMatch ^/csp/*/.* "/apache$common/csp/bin/nph-CSPcgi"
To map requests for all files in the /csp path to be processed by CSP, add this block:
ScriptAliasMatch ^/csp/*/.* "/apache$common/csp/bin/nph-CSPcgi"
<Directory "/usr/cachesys/csp/bin/">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>
Operating and Managing the Gateway with OpenVMS CGI and NSD
This connectivity option depends on the CSP Gateway’s Network Service Daemon (NSD).
  1. Start the CSP NSD as described in Operating the Network Service Daemon (NSD)
  2. Restart SWS/Apache after making changes to its configuration file (HTTPD.CONF).
    The order in which SWS/Apache and the NSD are started is unimportant.
  3. To access the CSP Web Gateway Management page, enter one of the following URLs in your browser:
If you see an Unauthorized User error message, refer to the section on security considerations.
The CSP engine is automatically invoked for requested files that contain a .csp, .cls, or .zen extension. For example:
http://localhost:<port_no>/csp/samples/menu.csp