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
Open a browser and go to http://myproxy.sun.com:81.
Click the Create New iPlanet Web Proxy Server 3.6 link.
Create a new proxy instance:
Click OK.
Click Return to Server.
Select the newly created proxy instance.
Select the URLs button from the server menu.
Remove the default Client autoconfig mappings.
Click Remove in the Administration Interface.
Click OK to complete the process.
Click Save and Apply.
Click Create Mappings in the Administration Interface to create Regular URL mappings.
Select Regular for Mapping type.
Enter the following for Map Source Prefix:
Enter the following for Map Destination:
Click OK.
Click Save and Apply.
Create Reverse URL mappings.
Click Create Mappings in the Administration Interface.
Select Reverse for Mapping type.
Enter the following for Map Source Prefix:
Enter the following for Map Destination:
Click OK.
Click Save and Apply.
Verify Reverse Proxy configuration by opening a browser and accessing the proxy server.
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.
The web proxy server starts the installation wizard. Do the following:
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.
The wizard now creates the new proxy instance.
The proxy will request verification that you want to remove that entry.
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
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.
http://myproxy.sun.com
http://www.sun.com
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.
http://www.sun.com
http://myproxy.sun.com
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.
In this example, enter:
http://myproxy.sun.com