Hitachi

uCosminexus Application Server HTTP Server User Guide


4.4.1 CGI program definition

There are three ways to execute CGI programs:

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/"

(2) Example to specify the AddHandler directive

Note that you need to specify the ExecCGI option in the Options directive.

(3) Example to specify the SetHandler directive