This discussion is archived
0 Replies Latest reply: May 12, 2010 2:44 AM by 807573 RSS

Sun Proxy Server as a load balancer

807573 Oracle ACE
Currently Being Moderated
Hi,

I am a newbie in using Sun Proxy Server. We have installed sun java system web proxy server 4.0.12 and like to use it for load balancing alone as of now. As per the administration guide I have defined "Configure HTTP Request Load Balancing" under "Route" tab. Defined the "regular expression" as "/exchange/*" by which i expect the proxy server to capture the url starting with /exchange/* and forward the request to the servers mentioned in the "Server" value.

After restarting the server, proxy server is not working as expected. It always says,

Proxy denies fulfilling the request.
Your client is not allowed to access the requested object.

whenever i try to access the url. Given below the obj.conf
# You can edit this file, but comments and formatting changes
# might be lost when the admin server makes changes.

Init fn="flex-init" access="$accesslog" format.access="%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] \"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-st
atus% %Req->vars.p2c-cl% %Req->vars.remote-status% %Req->vars.r2p-cl% %Req->headers.content-length% %Req->vars.p2r-cl% %Req->vars.c2p-hl% %Req->vars.p2c-hl%
%Req->vars.p2r-hl% %Req->vars.r2p-hl% %Req->vars.xfer-time%"
Init fn="init-proxy" timeout="300" timeout-2="15"

<Object name="default">
AuthTrans fn="match-browser" browser=".*MSIE.*" ssl-unclean-shutdown="true"
NameTrans fn="reverse-map" from="http://.\\/exchange/.\\" to="http://aeos:8080/exchange/." rewrite-location="true" rewrite-content-location="true"
NameTrans fn="map" from="http://aeos:8080/exchange/." to="http://.\\/exchange/.\\" rewrite-host="true"
PathCheck fn="url-check"
ObjectType fn="block-ip"
Service fn="deny-service"
AddLog fn="flex-log" name="access"
</Object>

<Object name="file">
PathCheck fn="unix-uri-clean"
PathCheck fn="find-index" index-names="index.html"
ObjectType fn="type-by-extension"
ObjectType fn="force-type" type="text/plain"
Service fn="send-file"
</Object>

<Object ppath="ftp://.*">
ObjectType fn="cache-enable" query-maxlen="10" log-report="off"
ObjectType fn="cache-setting" lm-factor="0.10" max-uncheck="7200"
Service fn="proxy-retrieve"
</Object>

<Object ppath="http://.*">
ObjectType fn="cache-enable" query-maxlen="10" log-report="off"
ObjectType fn="cache-setting" lm-factor="0.10" max-uncheck="7200"
Service fn="proxy-retrieve" method="*"
</Object>

<Object ppath="https://.*">
Service fn="proxy-retrieve"
</Object>

<Object ppath="gopher://.*">
ObjectType fn="cache-enable" query-maxlen="10" log-report="off"
ObjectType fn="cache-setting" lm-factor="0.10" max-uncheck="7200"
Service fn="proxy-retrieve"
</Object>

<Object ppath="/exchange/*">
Service fn="proxy-retrieve"
Route fn="set-origin-server" server="http://aeos:4080" server="http://pyrois:4080" sticky-cookie="JSESSIONID" sticky-param="jsessionid" route-hdr="Proxy-jrou
te" route-cookie="JROUTE" rewrite-host="false" rewrite-location="true" rewrite-content-location="true"
</Object>

<Object ppath="connect://.*:443">
Service fn="connect" method="CONNECT"
</Object>

<Object ppath="connect://.*:563">
Service fn="connect" method="CONNECT"
</Object>
Any help appreciated. Thanks in advance.

with regards,
T. Jayakumar