Sun Java System Web Proxy Server 4.0.3 2006Q2 Administration Guide

ProcedureTo configure virtual multihosting

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

  2. Click the Configure Virtual Multihosting link.

    The Configure Virtual Multihosting page displays.

  3. In the Source Hostname (alias) field, specify the local host name (or DNS alias) that this mapping should apply to.

  4. In the Source Domain Name field, enter the local domain name that this mapping should apply to.

    Typically, this is your own network’s domain name, unless you want to multi-host multiple different DNS domains.

  5. In the Destination URL Prefix field, enter the target URL prefix where the request will be directed if the host and domain names match the above specifications.

  6. If you are using templates, choose the template name from the Use This Template drop-down list, or leave the value at “NONE” if you do not want to apply a template.

  7. Click OK.

  8. Click Restart Required.

    The Apply Changes page displays.

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

    Repeat the above steps for each virtual multihosting mapping you want to establish.

    All virtual multihosting mappings appear on the bottom of the Configure Virtual Multihosting page. Note that the Source Hostname (alias) and Source Domain Name fields are merged, together with the proxy’s port number, into a single regular expression that is used to match the “Host:” header.

    For example, if you have host name “www”, domain “example.com”, and port number “8080”, it will display the regular expression:

    www(|.example.com)(|:8080)

    This will guarantee a match with all of the following possible combinations that the user may have typed, or the client may have sent (the port number may be omitted by some client software even when it’s non-80, as it is obvious to the server which port number it was listening on):

    • www

    • www:8080

    • www.example.com

    • www.example.com:8080