In the configuration shipped with the iTP Secure WebServer, files that have the extension .cgiare processed by the generic-CGI server class. The generic-CGI server class launches a CGI process for each request. The server class uses the NonStop TS/MP Pathsend facility to communicate with thehttpd process but uses a standard NCSA CGI interface to communicate with CGI programs. Programs that have the extension.pwayare treated as NonStop TS/ MP server classes, and the file name is mapped into a server class name. The server class name consists of the file name portion of the path as the server class name, excluding the extension. For example, the following becomes the server classuserform:
/usr/tandem/webserver/root/userform.pway
Because the server class uses explicit naming conventions, names of CGI programs that have .pway extensions must start with an alphabetic character, must be no more than 15 characters in length, and must be unique to each system.
Also, server class names (unlike OSS file names) are not case sensitive. Check that the names you specify for CGI processes are unique regardless of case.
You map MIME types to server classes by using thePathwayMimeMapconfiguration command, shown in“Server MIME Types” (page 143). The example contains the serverMIME types table and is derived from the table shipped with NCSA's public domain HTTP server. ThePathwayMimeMap directives specify that programs that have the extension.cgiare to be processed by the
generic-CGI server class, and programs that have the extension.ab_demoare to be processed by server classes defined to the$ZAB PATHMONprocess. TheMimeTypeandPathwayMimeMap for server-side includes cause the iTP Secure WebServer to invoke the generic-CGI server class to process SSI directives that use theexeccommand to run CGI programs. (For information about the exec command, see“SSI Directives” (page 131).)
All CGI programs have the MIME type ofapplication/x-httpd-guardian. The other types in“Server MIME Types” (page 143)have no significance for CGI programs.
Table 15 Server MIME Types
# VERSION=7.2 #
# This file contains the server MIME types table, and is
# derived from the table shipped with NCSA's public domain HTTP # server.
# #
# These types enable CGI script processing, imagemaps, and
Table 15 Server MIME Types (continued) # server side includes.
#
#MimeType application/x-httpd-cgi cgi #MimeType application/x-httpd-fcgi fcg fcgi MimeType application/x-imagemap map
MimeType text/x-server-parsed-html shtml #These Mime Types are for Servlet API 2.0 SSC MimeType application/x-httpd-nsk ssc
#These Mime Types are for Pathway
MimeType application/x-httpd-guardian pway
# PathwayMap for Generic CGI programs do not remove! MimeType application/x-httpd-guardian cgi
PathwayMimeMap cgi generic-cgi # PathwayMap for Server-side include
MimeType application/x-httpd-guardian zinclude PathwayMimeMap zinclude generic-cgi
#
# This variable is the document MIME type returned if the # server can find no matching extension in the MIME types # table.
#
DefaultType text/plain #
# This table maps file extensions into MIME types. #
MimeType application/octet-stream bin MimeType application/oda oda
MimeType application/pdf pdf
MimeType application/postscript ai eps ps MimeType application/rtf rtf
MimeType application/x-mif mif MimeType application/x-csh csh MimeType application/x-dvi dvi MimeType application/x-hdf hdf MimeType application/x-latex latex MimeType application/x-netcdf nc cdf MimeType application/x-sh sh
MimeType application/x-tcl tcl MimeType application/x-tex tex
MimeType application/x-texinfo texinfo texi MimeType application/x-troff t tr roff MimeType application/x-troff-man man MimeType application/x-troff-me me MimeType application/x-troff-ms ms MimeType application/x-wais-source src MimeType application/zip zip
MimeType application/x-bcpio bcpio MimeType application/x-cpio cpio MimeType application/x-gtar gtar MimeType application/x-shar shar MimeType application/x-sv4cpio sv4cpio MimeType application/x-sv4crc sv4crc MimeType application/x-tar tar MimeType application/x-ustar ustar MimeType audio/basic au snd
MimeType audio/x-aiff aif aiff aifc MimeType audio/x-wav wav
MimeType image/gif gif MimeType image/ief ief
MimeType image/jpeg jpeg jpg jpe MimeType image/tiff tiff tif MimeType image/x-cmu-raster ras MimeType image/x-portable-anymap pnm MimeType image/x-portable-bitmap pbm MimeType image/x-portable-graymap pgm MimeType image/x-portable-pixmap ppm MimeType image/x-rgb rgb MimeType image/x-xbitmap xbm MimeType image/x-xpixmap xpm
Table 15 Server MIME Types (continued) MimeType image/x-xwindowdump xwd MimeType text/html html htm MimeType text/plain txt MimeType text/richtext rtx MimeType text/tab-separated-values tsv MimeType text/x-setext etx
MimeType video/mpeg mpeg mpg mpe MimeType video/mpeg2 mpv2
MimeType video/quicktime qt mov MimeType video/x-msvideo avi MimeType video/x-sgi-movie movie #
# Everything below this point has been added for version 1.1 #
MimeType x-world/x-vrml wrl MimeType image/png png #
# added for XML support #
MimeType text/xml xml XML MimeType text/xsl xsl XSL #
# Encoding Types (for compression) #
#EncodingType x-gzip gz
#EncodingType x-zip-compress Z MimeType application/x-compress Z MimeType application/x-gzip gz
#added for javascript and css support #
MimeType application/x-javascript js MimeType text/css css
#
# Everything below this point has been added for version 2.0 #
MimeType audio/x-pn-realaudio ra ram