CGI support
Use the initialization parameters to control the behavior of CGIServlet.
CGIServlet
CGI scripts run on a Web server and use the Common Gateway Interface (CGI) to perform tasks. The support for CGI in Dashboard Application Services Hub is provided by CGIServlet, extracted from Apache Tomcat. The Tomcat CGI support is largely compatible with the Apache HTTP Server but there are some limitations (such as only one cgi-bin directory). To change the configuration, editweb.xml
in
the directory where the CGI application is installed.Servlet initialization parameters
Several initialization parameters are available for configuring the behavior of the CGIServlet.- cgiPathPrefix
- The CGI search path will start at the Web application root directory
+ File.separator + this prefix. Default setting:
cgiPathPrefix is Web-INF/cgi
.
- debug
- Determines the level of debugging detail for messages that are
logged by the servlet. Default setting:
0
.
- executable
- This is type of the program to be used to run the script. Default
setting:
perl
.
- parameterEncoding
- Names the parameter encoding to be used with the CGI servlet.
Default setting:
System.getProperty("file.encoding","UTF-8")
. - passShellEnvironment
- Determines whether shell environment variables, if there are any,
shall be passed to the CGI script. Default setting:
false
.