uCosminexus Application Server, Web Container Functionality Guide

[Contents][Glossary][Index][Back][Next]

4.8.3 Execution environment settings (When the Smart Composer functionality is used)

This subsection describes the settings for the error page customization.

Organization of this subsection
(1) How to set
(2) Example settings

(1) How to set

Define the association between the error status code and the error page in the following files:

(a) Precautions when specifying the error status codes

Take the following precautions when specifying the error status codes in the Easy Setup definition file:

(b) Precautions for specifying the ErrorDocument directive

Take the following precautions when you specify the ErrorDocument directive in httpsd.conf:

(2) Example settings

The following example describes the error page customization:

Example of Easy Setup definition file
 
...
<param>
 <param-name>worker.list</param-name>
 <param-value>worker1</param-value>
</param>
<param>
 <param-name>worker.worker1.type</param-name>
 <param-value>ajp13</param-value>
</param>
<param>
 <param-name>worker.worker1.host</param-name>
 <param-value>host1</param-value>
</param>
<param>
 <param-name>worker.worker1.delegate_error_code</param-name>
 <param-value>404</param-value>
</param>
...
 
Define the error status code '404(Not Found)' in the worker.worker-name.delegate_error_code parameter.

Example of httpsd.conf
# Description of httpsd.conf#
#  ...
ErrorDocument 404 /missing.html
The error status code and the file name of the corresponding error page are associated. When an error with error status code '404(Not Found)' occurs, the missing.html file is displayed.
For details on the ErrorDocument directive, see the uCosminexus Application Server HTTP Server User Guide.