Oracle iPlanet Web Proxy Server 4.0.14 Administration Guide

ProcedureTo create a URL mapping

  1. Access the Server Manager and click the URLs tab.

  2. Click the Create Mapping link.

    The Create Mapping page is displayed.

  3. Choose the type of mapping you want to create.

    • Regular Mappings. If you select this option, the following option is displayed in the lower section of the page:

      • Rewrite Host. Indicate whether the Host HTTP header is rewritten to match the host specified by the to parameter.

      • Reverse Mappings. Maps a redirected URL prefix to another URL prefix. If you select this option, the following option is displayed in the lower section of the page:

        • Rewrite Location. Indicate whether the Location HTTP response header should be rewritten.

        • Rewrite Content Location. Indicate whether the Content-location HTTP response header should be rewritten.

        • Rewrite Headername. Select the check box to indicate whether the headername HTTP response header should be rewritten, where headername is a user-defined header name.

        Regular Expressions. Map all URLs matching the expression to a single URL. For more information on regular expressions, see Chapter 16, Managing Templates and Resources.

      • Client Autoconfiguration. Maps URLs to a specific .pac file stored on the Proxy Server. For more information on autoconfiguration files, see Chapter 17, Using the Client Autoconfiguration File.

      • Proxy Array Table (PAT). Maps URLs to a specific .pat file stored on the Proxy Server. You should only create this type of mapping from a master proxy. For more information on PAT files and proxy arrays, see “Routing through Proxy Arrays” in Chapter 12, Caching

  4. Type the map source prefix.

    For regular and reverse mappings, this prefix should be the part of the URL you want to substitute.

    For regular expression mappings, the URL prefix should be a regular expression for all the URLs you want to match. If you also choose a template for the mapping, the regular expression will work only for the URLs within the template’s regular expression.

    For client autoconfiguration mappings and proxy array table mappings, the URL prefix should be the full URL that the client accesses.

  5. Type a map destination.

    For all mapping types except client autoconfiguration and proxy array table, this declaration should be the full URL to which to map. For client autoconfiguration mappings, this value should be the absolute path to the .pac file on the proxy server’s hard disk. For proxy array table mappings, this value should be the absolute path to the .pat file on the master proxy’s local disk.

  6. Select the template name from the drop-down list, or leave the value at NONE if you do not want to apply a template.

  7. Click OK to create the mapping.

  8. Click Restart Required.

    The Apply Changes page is displayed.

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