Apache 2.4 issue on proxypass balancing on two BalancerMember [Weblogic 12c]

1.1k Views Asked by At

I have an Apache 2.4.12 on a dedicated machine (RedHat 6.x) that must balance on another machine with two Weblogic Managed Servers (port: 9101 and 9102. Weblogic 12c on RedHat 6.x) where I have deployed the application "Pega".

I have implemented the configuration below on the Apache VirtualHost (myvirtualhost.conf) but if I have both BalancerMember active it doesn't work. If I comment one of the two BalancerMember it works fine.

Do you have any suggestion to fix it?

thanks in advance for your collaboration

<VirtualHost myvirtualhost:443>
    SSLEngine on
    SSLProxyEngine on
    SSLProxyVerify none
    SSLProxyCheckPeerCN off
    SSLProxyCheckPeerName off
    SSLProtocol all -SSLv2

   #Server certificate
   SSLCertificateFile /opt/rh/httpd24/root/etc/httpd/ssl/xxx.cer

   #chiave privata del server:
   SSLCertificateKeyFile /opt/rh/httpd24/root/etc/httpd/ssl/xxx.key

   #chain del certificato del server:
   SSLCertificateChainFile /opt/rh/httpd24/root/etc/httpd/ssl/xxx.crt

   #Certificate Authority (CA):
   #SSLCACertificateFile /opt/rh/httpd24/root/etc/httpd/ssl/xxx.crt

    ################################

   <Proxy balancer://mybalancing>
       BalancerMember https://myweblogicserver:9101
       BalancerMember https://myweblogicserver:9102
   </Proxy>

    ProxyRequests on
    ProxyPreserveHost on 

##########Disable URL ############
ProxyPass  /myexcludedpath !
##################################

    ProxyPass "/" "balancer://mybalancing/"
    ProxyPassReverse "/" "balancer://mybalancing/"

</VirtualHost>

Edit: Yes i set correctly parameters. I reach the login page (both when it works and when it doesn't) but when it doesn't work, if i enter my credential, i see:

Status  fail
Message There has been an issue; please consult your system administrator
Operator ID Unauthenticated or not available
Requestor ID    No ID available
Timestamp   Thu Feb 25 12:37:36 CET 2016
Engine Version  PegaRULES 7.10 ML9 (coreAssemblyCached_719_730)

But if i comment one of the BalancerMember:

<Proxy balancer://mybalancing>
   # BalancerMember https://myweblogicserver:9101
     BalancerMember https://myweblogicserver:9102
</Proxy>

It works fine.

So i guess i miss something in the declaration of 'balancer' , or maybe i miss some directive..

Any suggestion would be really appreciated.

Thanks

EDIT2: Yes the session replication works well between the two servers. I'm able to login using a direct URL to a server (actually a Node in a server, the machine is the same, what changes is the port : 9101 and 9102) and then switch the other server (other node) maintaining my current session.. I guess it's some directive of proxypass but its the first time i face it

1

There are 1 best solutions below

0
On

To use the WebLogic Web Server plugins, these are the basic steps:

  1. Download the .so file and copy to /etc/httpd/modules.

  2. Create a file called /etc/httpd/conf.d/weblogic.conf with the following content:

LoadModule weblogic_module modules/mod_wl_24.so

<IfModule weblogic_module>
    WebLogicCluster myweblogicserver:9101,myweblogicserver:9102
    DebugConfigInfo ON
    MatchExpression * 
</IfModule>