Customizing the Error Pages

Access Gateway uses the Apache method for localizing error messages. You can modify these messages or customize the page they are displayed on.

  1. To change a message:

    1. Open the httpd-multilang-errordoc.conf file.

      The first few lines of this file contains Apache recommendations for modifying the error messages. You can select to use those methods or continue with the following steps.

      For information about how to open and modify a file, see Modifying Configurations.

    2. Locate the ErrorDocument section and determine the error code message you want to modify. Make note of the *.var filename.

    3. Open the /opt/novell/apache2/share/apache2/error folder on the Advanced File Configurator page and locate the *.var file that you want to modify.

      For information about how to open a folder, see Modifying Configurations.

      The message is listed alphabetically by language code.

  2. To change the header of the error page:

    1. Open the top.html page.

      For information about how to open and modify a file, see Modifying Configurations.

    2. To change the title of the page, locate the following line:

      <title>Access Gateway<\title>
    3. Replace the Access Gateway string with the content you require.

    4. To replace the image in the header, locate the following line:

      <img src="/NAGErrors/images/header_550.png" alt="" height="50px" width="550px" border="0">
    5. Replace header_550.png with the filename of the image you want to display.

    6. Adjust the height and width values to match your image.

    7. Save the file.

    8. Copy your image to the /opt/novell/apache2/share/apache2/error/images directory.

  3. To change the footer of the error page:

    1. Open the bottom.html page.

      For information about how to open and modify a file, see Modifying Configurations.

    2. To change the image, find the following line:

      <td style="background-color: #E6D88C; padding-left: 10px"><img style="padding-right: 200px" src="/NAGErrors/images/LAP_interoperable_logo_100.gif" align="absmiddle" border="0">
    3. Change LAP_interoperable_logo_100.gif to the filename of the image you want to display.

    4. Save the file.

    5. Copy your image to the /opt/novell/apache2/share/apache2/error/images directory.

The err_legacy.jsp file will also log the ESP error messages. For more information about customizing the err_legacy.jsp page, see Customizing Identity Server Messages. The procedure for customizing is the same except the paths for Access Gateway. See nidp.jar and err_legacy.jsp for the respective Access Gateway paths.