Friday, January 18, 2013

IPLANET WEBSERVER RESTRICT BROWSER SUPPORT :

By default iplanet will support all browser buy we can restrict the client browser by adding the below entries in obj.conf file
For IE :
<If $browser =~ "MSIE">
NameTrans fn="rewrite" path="/msie.html"
</If>
For Mozilla :
<If $browser =~ "Mozilla">
NameTrans fn="rewrite" path="/mozilla.html"
</If>
Changing the browser name in the above entry  and we can use same for other Browser also .

Thursday, January 17, 2013

Configuring Reverse Proxy

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.
In this article I will describe how to configure reverse proxy in Sun Java System Web Server 7.0 console , CLI and Manually .
Type -1
Configuring Reverse Proxy Using CLI by Manually Editing the obj.conf file :
NameTrans fn="map" from="/test" name="reverse-proxy" to="http:/test"
Object ppath="http:*"
Service fn="proxy-retrieve"
Object
<Object name="reverse-proxy"
> Route fn="set-origin-server" server="http://:port"
Object
Type -2 Configuring Reverse Proxy Using CLI :
wadm>create-reverse-proxy --config test --vs test --uri-prefix=/ --server=http://:port
Type -3
Configuring Reverse Proxy Using Administration Console
Using the Administration Console, select Configurations > Virtual Servers > Content Handling > Reverse Proxy tab. Click New.
Specify values for the following parameters:
URI — The reverse proxy URI
Server URL — Comma separated server URLs of all the machines in the cluster separated by comma. If multiple values are given, the server will distribute load among the specified servers.
The format for entering the server URL is hostname:portnumber. For example, http://:port
Click the OK button.
Click the Deployment Pending link in the top right of the screen to deploy the modified configuration and to apply changes to the configuration.
Click the Deploy button.
Deployment successful message appears.