Sun Java System Web Server 6.1 SP10 Administrator's Guide

Enabling Logging for a Virtual Server

To enable virtual server level logging, perform the following steps

ProcedureTo enable virtual server level logging

  1. Go to the Logs tab in the Server Manager for the server instance and select Log Preferences.

  2. Create a new access log by entering the path and file name in the Log File field.

    You can also manually create a new access log in magnus.conf by changing

    Init fn=init access="$accesslog" to Init fn=init access="newaccesslog"

  3. Select Only Log under Format and check Virtual Server Id.

    For a custom format, select Custom Format and add %vsid% to the end of the line.

    %vsid% is useful when using multiple virtual servers. This entry records vsid in the access log.

    You can also manually add %vsid% to the end of Init fn in the magnus.conf file.

  4. Click OK.

  5. Click Apply.

  6. Click Apply Changes for your changes to take effect.