Sun Java System Web Server 7.0 Update 5 Administrator's Guide

Setting the Document Footer

You can specify a document footer, which can include the last-modified time, for all the documents in a certain section of the server. This footer works for all files except output of CGI scripts or parsed HTML (.shtml) files. If you need your document footer to appear on CGI-script output or parsed HTML files, enter your footer text into a separate file and add a line of code or another server-side include to append that file to the page’s output.

To set the document footer, follow these steps:

ProcedureTo Set the Document Footer

  1. From the virtual server page, click the Content Handling tab.

  2. Click General sub tab and go to Document Footer section.

  3. Specify the type of files that you want to include in the footer.

  4. Specify the date format.

  5. Type any text you want to appear in the footer.

    The maximum number of characters for a document footer is 7.065. If you want to include the date the document was last modified, type the string :LASTMOD:.

  6. Click Save.


    Note –

    Using CLI

    To set the document footer through CLI, execute the following command.


    wadm> enable-document-footer --user=admin --password-file=admin.pwd 
    --host=serverhost --port=8989 --config=config1 --vs=config1_vs_1 
    --mime-type=text/html --date-format=%B --footer="config1 footer"

    See CLI Reference, enable-document-footer(1).