Installing CGI Programs
Chapter
15
Extending Your Server With Programs
345
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
,
.exe
, or
.bat
. The programs can be located in any directory
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
.cgi
,
.exe
, or
.bat
as CGI programs. If a file has one of these extensions but is not a CGI
program, an error occurs when a user attempts to access it.
NOTE
By default, the file extensions for CGI programs are
.cgi
,
.exe
and
.bat.
However, you can change which extensions indicate CGI
programs by modifying the MIME types file. You can do this by
choosing the Server Preferences tab and clicking the MIME Types
link.
Summary of Contents for NETSCAPE ENTREPRISE SERVER 6.0 - ADMINISTRATOR
Page 1: ...Administrator s Guide Netscape Enterprise Server Version6 0 November 2001...
Page 18: ...18 Netscape Enterprise Server Administrator s Guide November 2001...
Page 26: ...26 Netscape Enterprise Server Administrator s Guide November 2001...
Page 48: ...Migrating a Server 48 Netscape Enterprise Server Administrator s Guide November 2001...
Page 50: ...50 Netscape Enterprise Server Administrator s Guide November 2001...
Page 146: ...146 Netscape Enterprise Server Administrator s Guide November 2001...
Page 242: ...242 Netscape Enterprise Server Administrator s Guide November 2001...
Page 294: ...294 Netscape Enterprise Server Administrator s Guide November 2001...
Page 332: ...Deleting a Virtual Server 332 Netscape Enterprise Server Administrator s Guide November 2001...
Page 378: ...378 Netscape Enterprise Server Administrator s Guide November 2001...
Page 396: ...Responses 396 Netscape Enterprise Server Administrator s Guide November 2001...
Page 414: ...Posting to JSPs 414 Netscape Enterprise Server Administrator s Guide November 2001...
Page 432: ...Further Information 432 Netscape Enterprise Server Administrator s Guide November 2001...
Page 444: ...444 Netscape Enterprise Server Administrator s Guide November 2001...