Netscape ENTREPRISE SERVER 6.0 - ADMINISTRATOR Administrator's Manual page 345

Table of Contents

Advertisement

Regardless of the programming language, all CGI programs accept and return data
in the same manner. For information about writing CGI programs, see the
following sources of information:
Netscape Enterprise Server Programmer's Guide
The Common Gateway Interface at:
http://hoohoo.ncsa.uiuc.edu/cgi/overview.html
There are two ways to store CGI programs on your server machine:
Specify a directory that contains only CGI programs. All files are run as
programs regardless of the file extensions.
Specify that CGI programs are all a certain file type. That is, they all use the file
extensions
,
.cgi
in or under the document root directory.
You can enable both options at the same time if desired.
There are benefits to either implementation. If you want to allow only a specific set
of users to add CGI programs, keep the CGI programs in specified directories and
restrict access to those directories. If you want to allow anyone who can add HTML
files to be able to add CGI programs, use the file type alternative. Users can keep
their CGI files in the same directories as their HTML files.
If you choose the directory option, your server attempts to interpret any file in that
directory as a CGI program. By the same token, if you choose the file type option,
your server attempts to process any files with the file extensions
as CGI programs. If a file has one of these extensions but is not a CGI
.bat
program, an error occurs when a user attempts to access it.
NOTE
By default, the file extensions for CGI programs are
.bat.
programs by modifying the MIME types file. You can do this by
choosing the Server Preferences tab and clicking the MIME Types
link.
, or
. The programs can be located in any directory
.exe
.bat
However, you can change which extensions indicate CGI
Chapter 15
Installing CGI Programs
,
.cgi
.exe
,
.cgi
.exe
Extending Your Server With Programs
, or
and
345

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netscape management system 6.0

Table of Contents