Meena Vyas

All | WebServer7.0
« Access Control In... | Main | Configuring WebDAV... »
20060516 Tuesday May 16, 2006

Configuring Reverse Proxy in Sun Java System Web Server 7.0 Technology Preview

Configuring Reverse Proxy in Sun Java System Web Server 7.0 Technology Preview

Sun Java System Web Server 7.0 Technology Preview is now avaliable for FREE and can be downloaded from here.

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 descirbe how to configure reverse proxy in Sun Java System Web Server 7.0 via CLI.

Configuring reverse proxy in Sun Java System Web Server 7.0

Go to Sun Java System Web 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


  7. Related links :

    Posted by meena ( May 16 2006, 11:15:12 PM IST ) Permalink Comments [0]

Trackback URL: http://blogs.sun.com/meena/entry/configuring_reverse_proxy_in_sun
Comments:

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed

Calendar

Search

Links

RSS Feeds

Navigation

Referers