Oracle iPlanet Web Proxy Server 4.0.14 Administration Guide

Working With Templates

ProcedureTo Create a Template

You can create a template using a regular expression wildcard pattern. You can then configure aspects that affect only the URLs specified in that template. For example, you might use one type of caching configuration for .GIF images and another for plain .html files.

  1. Access the Server Manager, and click the Templates tab.

    Click the Create Template link. The Create Template page is displayed.

  2. In the Template Name field, type a name for the template you are creating, and click OK.

    The name should be something you can easily remember. The Server Manager prompts you to save and apply your changes. You can save the changes after you create a regular expression for the template, as described in the remaining steps.

ProcedureTo Apply a Template

  1. Access the Server Manager, and click the Templates tab.

  2. Click the Apply Template link.

    The Apply Template page is displayed.

  3. Type a regular expression wildcard pattern that includes all of the URLs you want to include in your template in the URL Prefix Wildcard field.

  4. From the Template list, select the name of the new template you just added.

  5. Click OK.

  6. Click Restart Required.

    The Apply Changes page is displayed.

  7. Click the Restart Proxy Server button to apply the changes.

ProcedureTo Remove a Template

You can remove existing templates. Removing a template deletes all of the associated configurations for the template. For example, if you have access control set up for all URLs in the template TEST, removing the TEST template also removes the access control to the URLs contained in then template.

  1. Access the Server Manager, and click the Templates tab.

  2. Click the Remove Template link.

    The Remove Template page is displayed.

  3. Choose the template from the Remove list.

  4. Click OK.

  5. Click Restart Required.

    The Apply Changes page is displayed.

  6. Click the Restart Proxy Server button to apply the changes.

ProcedureTo Edit a Template

You can view and edit the templates created in the Server Manager.

  1. Access the Server Manager, and click the Templates tab.

  2. Click the View Template link.

    The View Template page is displayed. The templates are shown in a table that lists the regular expression for the template and the template name.

  3. To edit an existing template, click the Edit Template Assignment link. The Apply Template page is displayed.