views:

179

answers:

0

We are using Weblogic Portal and Apache 2.x http server with the weblogic plug-in for apache for load-balancing.

We have an application that right now can only be accessed from one of our managed servers. What I would like to do is use the Location directive to direct all requests for that page to the one managed server and I can't get it to work. The context that the portal tries to forward to is something like /MyWebApp?portalusername=<SomeUserName> (where <SomeUserName> equals a legitimate user. For example /MyWebApp?portalusername=joesmith.

All other applications and the plug-in is load balancing as expected because every now and then you'll get sent to the second managed server for this particular application and its not deployed.

I tried various things in the Apache http.conf like the following but can't seem to get it work. Any suggestions? The following is a snippet of the httpd.conf: (Note formatting did not come thru properly but it is formatted correctly in my httpd.conf)

<Location /MyWebApp>

  SetHandler weblogic-handler

  WebLogicCluster myserver:7011

</Location>

<Location /?>

  SetHandler weblogic-handler

  WebLogicCluster myserver:7011, myserver2:7012

</Location>