Sun Java System Web Server 6.1 SP9 Administrator's Guide

Customizing Error Responses

You can specify a custom error response that sends a detailed message to clients when they encounter errors from your virtual server. You can specify a file to send or a CGI program to run.

For example, you can change the way the server behaves when it gets an error for a specific directory. If a client tries to connect to a part of your server protected by access control, you might return an error file with information on how to get an account.

Before you can enable a custom error response, you must create the HTML file to send or the CGI program to run in response to an error. After you do this, enable the response in the Class Manager.

To enable a customized error response, follow these steps

ProcedureTo enable a customized error response

  1. From the Class Manager, click the Content Management tab.

  2. Click Error Responses.

  3. Choose Entire Server from the resource picker to apply your change to the whole class, or navigate to the document root for a specific virtual server, or to a specific directory or within a specific virtual server.

  4. For each error code you want to change, specify the absolute path to the file or CGI that contains the error response.

  5. Click OK.

    For more information see the online help for the Error Responses page.