
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
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
- list-reverse-proxy-uris
- set-reverse-proxy-prop
- get-reverse-proxy-prop
- forward-reverse-proxy-header
- block-reverse-proxy-header
- list-reverse-proxy-headers
Related links :
Posted by meena
( May 16 2006, 11:15:12 PM IST )
Permalink
Trackback URL: http://blogs.sun.com/meena/entry/configuring_reverse_proxy_in_sun