4.4.1 CGI program definition
There are three ways to execute CGI programs:
-
Specify a directory containing CGI programs in the ScriptAlias directive.
-
Specify the cgi-script handler in the file extension by using the AddHandler directive.
-
Specify the cgi-script handler in the SetHandler directive.
Hitachi recommends you to set the ScriptAlias directive in httpsd.conf for easy management of CGI programs.
- Organization of this subsection
(1) Example to specify the ScriptAlias directive
When the CGI program path is Application-Server-installation-directory/httpsd/cgi-bin/CGI program file name, and the clients access the /cgi-bin/CGI program file name
ScriptAlias /cgi-bin/ "Application-Server-installation-directory/httpsd/cgi-bin/"