Tuesday May 16, 2006

Configuring Reverse Proxy in Sun Java System Web Server 7.0

Configuring Reverse Proxy in Oracle iPlanet Web Server 7.0 

Origin Server <-- HTTP ---> Reverse Proxy Server <-- HTTP --> client/Browser

Introduction

A reverse proxy is a proxy that appears to be a web server (origin server) to clients but in reality forwards the requests it receives to one or more origin servers. Because a reverse proxy presents itself as an origin server, clients do not need to be configured to use a reverse proxy. By configuring a given reverse proxy to forward requests to multiple similarly configured origin servers, a reverse proxy can operate as an application level software load balancer. In a typical deployment one or more reverse proxies will be deployed between the browsers and the origin servers.
In this article I will describe how to configure reverse proxy in Sun Java System Web Server 7.0 via CLI.

Configuring reverse proxy in Oracle iPlanet Web Server 7.0

Go to Oracle iPlanet Wwb Server 7.0 installation directory.
Start Admin Server
./admin-server/bin/startserv
Start wadm.
/bin/wadm --user=admin
Please enter admin-user-password>
Sun Java System Web Server 7 B12/02/2005 18:02
wadm>

Then run create-reverse-proxy CLI

wadm>create-reverse-proxy --config test --vs test --uri-prefix=/ --server=http://abc.sun.com:8080

where server can contain more than one comma separated URLs.

obj.conf should have entries that look like

#obj.conf
<Object name="default">
...
NameTrans fn="map" from="/" name="reverse-proxy-/" to="http:/"
...
</Object>
...
<Object name="reverse-proxy-/">
Route fn="set-origin-server" server="http://abc.sun.com:8080"
</Object>

<Object ppath="http:\*">
Service fn="proxy-retrieve" method="\*"
</Object>

Other Advanced reverse proxy CLIs

  1. list-reverse-proxy-uris
  2. set-reverse-proxy-prop
  3. get-reverse-proxy-prop
  4. forward-reverse-proxy-header
  5. block-reverse-proxy-header
  6. list-reverse-proxy-headers

Related links :

Other blogs I have written on this :

There are various SSL and non SSL configurations we can have for Reverse Proxy and Origin Servers

  1. Origin Server <--- HTTP ---> Reverse Proxy Server <--- HTTP ---> client/Browser
  2. Origin Server <-- HTTP ---> Reverse Proxy Server <-- HTTPS --> client/Browser i.e. Reverse proxy SSL termination End point
  3. Origin Server <-- HTTPS ---> Reverse Proxy Server <-- HTTP --> client/Browser
  4. Origin Server <-- HTTPS ---> Reverse Proxy Server <-- HTTPS --> client/Browser

In this blog I tried out scenario 1.

About

Meena Vyas

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today