Hitachi

uCosminexus Application Server HTTP Server User Guide


4.4.9 Points to be noted when specifying path information

When the request URL contains the path information to be passed to a CGI program, the environment variable PATH_INFO is set to the path information and the environment variable PATH_TRANSLATED is set to a value that changes the path information into the path on the file system. When you change the path information into a path on the file system, the path specified in the DocumentRoot directive is the base path. For path information, if an optional name is specified in the Alias directive, change the path as per specifications.

According to Web server settings, if the path set in the environment variable PATH_TRANSLATED does not have access permissions, an access denied message is output to the error log. Even when the error message is output, the Web server runs the CGI program and continues the request processing. At this time, the environment variable PATH_TRANSLATED is also passed to the CGI program.

Example: The following is an example of error log output when the document root is Cosminexus-installation-directory/Cosminexus/httpsd, and the request from the Web browser is http://www.example.com/cgi-bin/test-cgi.pl/ABC (add "/ABC" as path information to the request that executes the CGI program "test-cgi.pl"):
[Thu Apr 02 15:33:10 2020] [error] [pid 11111:tid 12345] [client 192.168.1.1:45678] AH01797: client denied by server configuration: Cosminexus-installation-directory/Cosminexus/httpsd/ABC