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

Setting up Server-Parsed HTML

HTML is normally sent to the client exactly as it exists on disk without any server intervention. However, the server can search HTML files for special commands (that is, it can parse the HTML) before sending documents. If you want the server to parse these files and insert request-specific information or files into documents, you must first enable HTML parsing.

To parse HTML, follow these steps:

ProcedureTo Set Server Parsed HTML

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

  2. Click General sub tab.

  3. Under Parsed HTML/SSI Settings, choose whether to activate server-parsed HTML.

    You can activate for HTML files but not the exec tag, or for HTML files and the exec tag, which allows HTML files to execute other programs on the server.

  4. Choose which files to parse.

    You can choose whether to parse only files with the .shtml extension, or all HTML files, which slows performance. If you are using UNIX/Linux, you can also choose to parse UNIX/Linux files with the execute permission turned on, though that can be unreliable.

  5. Click Save.

    For more information on using server-parsed HTML, see the Sun Java System Web Server 7.0 Update 1 Developer’s Guide.

    Note –

    Using CLI

    For setting up server parsed HTML through CLI, execute the following command.

    wadm> enable-parsed-html --user=admin --password-file=admin.pwd 
    --host=serverhost --port=8989 --config=config1 --vs=config1_vs1

    See CLI Reference, enable-parsed-html(1).