Installing CGI Programs
280
Netscape Enterprise Server Administrator’s Guide
•
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.
Warning
Note that you must enable cookies in your browser to run CGI programs.
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.
Specifying a CGI Directory
To specify a CGI-only directory, perform the following steps:
1.
From the Server Manager, choose the Programs tab.
2.
Click the CGI Directory link.
The CGI Directory window appears.
3.
In the URL Prefix field, type the URL prefix to use for this directory. That is,
the text you type appears as the directory for the CGI programs in URLs.
For example, if you type
cgi-bin
as the URL prefix, then all URLs to these
CGI programs have the following structure:
http://
yourserver
.
domain
.
com
/cgi-bin/
program-name
Содержание Netscape Enterprise Server
Страница 30: ...Contacting Technical Support 30 Netscape Enterprise Server Administrator s Guide ...
Страница 31: ...Part 1 Server Basics 31 1 Server Basics Introduction to Enterprise Server Administering Enterprise Servers ...
Страница 32: ...32 Netscape Enterprise Server Administrator s Guide ...
Страница 56: ...Sending Error Information to Netscape 56 Netscape Enterprise Server Administrator s Guide ...
Страница 64: ...Migrating a Server From a Previous Version 64 Netscape Enterprise Server Administrator s Guide ...
Страница 66: ...66 Netscape Enterprise Server Administrator s Guide ...
Страница 112: ...Managing a Preferred Language List 112 Netscape Enterprise Server Administrator s Guide ...
Страница 158: ...158 Netscape Enterprise Server Administrator s Guide ...
Страница 182: ...Using the Watchdog uxwdog Process Unix 182 Netscape Enterprise Server Administrator s Guide ...
Страница 196: ...Viewing Events Windows NT 196 Netscape Enterprise Server Administrator s Guide ...
Страница 218: ...Enabling the Subagent 218 Netscape Enterprise Server Administrator s Guide ...
Страница 266: ...266 Netscape Enterprise Server Administrator s Guide ...
Страница 302: ...Enabling WAI Services 302 Netscape Enterprise Server Administrator s Guide ...
Страница 310: ...310 Netscape Enterprise Server Administrator s Guide ...
Страница 390: ...Customizing the Web Publisher User Interface 390 Netscape Enterprise Server Administrator s Guide ...
Страница 446: ...Customizing the Search Interface 446 Netscape Enterprise Server Administrator s Guide ...
Страница 448: ...448 Netscape Enterprise Server Administrator s Guide ...
Страница 454: ...Responses 454 Netscape Enterprise Server Administrator s Guide ...
Страница 464: ...Referencing ACL Files in obj conf 464 Netscape Enterprise Server Administrator s Guide ...
Страница 504: ...504 Netscape Enterprise Server Administrator s Guide ...