This discussion is archived
4 Replies Latest reply: Aug 6, 2012 2:22 AM by inthelineoffire RSS

Request parameters in Apache web server and weblogic

inthelineoffire Pro
Currently Being Moderated
Experts,

Need advise on the below use case.

I have 2 weblogic server set up as cluster and i have one apache web server setup as load balancer. My request goes to Apache webserver which then forwards to any of the weblogic server. So far it is good.

I have a page which has a link. When the user clicks on the link i call the apache webserver passing some parameters as request. How do i get the request in apache webserver and how do i set that up so that apache forwards the request along with parameters to weblogic.

[url http://docs.oracle.com/cd/E14571_01/web.1111/e16435/plugin_params.htm]Parameters to plugins, talks about parameters but i am lost how to configure it.

here is the content of my httpd.conf file
</IfModule>
</IfModule>

<IfModule mod_weblogic.c>
    WebLogicCluster x.y.z.xx:7002, x.y.z.yy:7002
    MatchExpression /*
</IfModule>
<Location /weblogic>
    WebLogicCluster  x.y.z.xx:7002, x.y.z.yy:7002
    Debug ALL
    PathTrim /weblogic
</Location>
thnks
  • 1. Re: Request parameters in Apache web server and weblogic
    804328 Newbie
    Currently Being Moderated
    I am not very sure if I understand your requirement correctly but what we need to understand is whether you have a link on a page or a link that you directly enter into the browser,the underlying logic is that it should resolve to the IP address and port of the web server you want to access.

    So the link say http://xyz.com should resolve to the IP address and port where your web server is running.

    Now coming to the forwarding the request to the weblogic server,it typically depends on how you would want to proxy the request i.e. whether you want to proxy by path or mime types.

    You can use a different context while accessing the link if it is a different application hosted on the same weblogic cluster and use identical rules as you have already done.

    Please refr to the below links on the list of available parameters that you can configure for your plugin:-

    http://docs.oracle.com/cd/E14571_01/web.1111/e16435/plugin_params.htm

    If you are referring to a scenario where you want to pass some parameters while accessing the link,then I think you need to alter the http post request to achieve the same.

    -Sandeep
  • 2. Re: Request parameters in Apache web server and weblogic
    inthelineoffire Pro
    Currently Being Moderated
    Hi Sandeep,

    I have a link on the page (This page is OAF page). Clicking on it opens my application which is deployed on weblogic (2 weblogic servers for load balancing). I have configured apache webserver to direct to any of the servers using the code i pasted in post 1.
    Now the issue is when i click on the link (the one on the OAF page) it is supposed to pass some parameters to the apache webserver which should then f/w them to weblogic. I am stuck at the point where apache is not reading parameters.

    Hope i am clear this time ;)
  • 3. Re: Request parameters in Apache web server and weblogic
    804328 Newbie
    Currently Being Moderated
    What parameters are these?

    How are you passing these parameters?Is it through form or URL-rewriting or what is the approach?

    How are you validating the statement that the plugin is not reading the parameter?

    Can you enable Debug logs and check what is happening on the subsequent request?

    -Sandeep
  • 4. Re: Request parameters in Apache web server and weblogic
    inthelineoffire Pro
    Currently Being Moderated
    We are passing them as request parameters in the URL. The reason i can say this is not working is because we direct the user to a specific page if the parameters are null or empty.

    Also, http://docs.oracle.com/cd/E14571_01/web.1111/e16435/plugin_params.htm, talks about MatchExpression which can be used to pass parameter using something like
    paramName=value //how to make this request.getParameters();
    thnks

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points