Home > Articles > Operating Systems, Server > Solaris

  • Print
  • + Share This
Like this article? We recommend

Setting Up the Proxy Server

In this example, the installation parameters for the Sun ONE Proxy Server are:

Server root : /opt/SunONE/proxy
Machine name: myproxy.sun.com
SuiteSpot user: proxyadmin
SuiteSpot group: sunone
Are you using an LDAP-based directory server? N
Administration port: 81
Run administration server as: proxyadmin
Server administrator ID: proxyadmin
Password: sun1ProxySvr

NOTE

The server must have restricted access to your system resources. Therefore, you should set up and run the proxy with a non-privileged system user account. The server will run with the UNIX_ user account you specify during installation. Any child processes of the proxy and all files created by the proxy are created with this account as the owner.

To Set up the Secure Proxy Server

  1. Open a browser and go to http://myproxy.sun.com:81.

  2. You will be prompted for a user ID and password. Enter the user ID proxyadmin and the password selected during the installation (for example, sun1ProxySvr).

    NOTE

    Refer to the administration guide to start up your Administration Server.

  3. Click the Create New iPlanet Web Proxy Server 3.6 link.

  4. The web proxy server starts the installation wizard. Do the following:

    1. Create a new proxy instance:

    2. Server Name: myproxy.sun.com
      Bind Address: <ip_address_of_server>
      Server Port: 80
      Server Identifier: myproxy
      Server User: proxyadmin
      Processes: 32
      
      Select: Attempt to resolve IP addresses only for access 
           control.
      Select: Extended log format (includes all byte counts, 
           transfer time).
      Enable Proxying of: HTTP and HTTPS
      Enable SSL Tunneling for: HTTPS
      Uncheck: Cache FTP
      Uncheck: Cache Gopher

      Leave all other options set to the default values.

      Leave all other options set to the default values.

    3. Click OK.

    4. The wizard now creates the new proxy instance.

    5. Click Return to Server.

  5. Select the newly created proxy instance.

  6. Select the URLs button from the server menu.

  7. Remove the default Client autoconfig mappings.

    1. Click Remove in the Administration Interface.

    2. The proxy will request verification that you want to remove that entry.

    3. Click OK to complete the process.

    4. Click Save and Apply.

    5. This will ensure that the changes are recognized by the proxy server and restart the proxy instance to ensure that the changes take effect immediately

  8. Click Create Mappings in the Administration Interface to create Regular URL mappings.

  9. To illustrate the configuration in FIGURE 1, the reverse proxy server at http://myproxy.sun.com will be configured to proxy the content web server at http://www.sun.com.

    Note that the reverse proxy server address is the advertised address, and users can access it without any knowledge of the main server.

    NOTE

    Since the proxy server software can support both forward and reverse proxy modes at the same time, the forward proxy may be used when performing requests intended for the reverse proxy server to keep the request from making an unnecessary loop from the forward to reverse proxy.

    1. Select Regular for Mapping type.

    2. Enter the following for Map Source Prefix:

    3. http://myproxy.sun.com
    4. Enter the following for Map Destination:

    5. http://www.sun.com
    6. Click OK.

    7. Click Save and Apply.

    8. This will ensure that the changes are recognized by the proxy server and restart the proxy instance to ensure that the changes take effect immediately.

  10. Create Reverse URL mappings.

    1. Click Create Mappings in the Administration Interface.

    2. Select Reverse for Mapping type.

    3. Enter the following for Map Source Prefix:

    4. http://www.sun.com
    5. Enter the following for Map Destination:

    6. http://myproxy.sun.com
    7. Click OK.

    8. Click Save and Apply.

    9. This will ensure that the changes are recognized by the proxy server and restart the proxy instance to ensure that the changes take effect immediately.

  11. Verify Reverse Proxy configuration by opening a browser and accessing the proxy server.

  12. In this example, enter:

    http://myproxy.sun.com
  • + Share This
  • 🔖 Save To Your Account