Method One:
--Close iptables and SELinux
--Add the following statement at the bottom of the Apache configuration file httpd.conf, and then restart Apache:
ServerName 127.0.0.1:80
Namevirtualhost 127.0.0.1:80
<virtualhost 127.0.0.1:80>
Proxypreservehost on
proxypass/balancer://cluster/
Proxypassreverse/balancer://mycluster
ServerName 127.0.0.1
Serveralias 127.0.0.1
</VirtualHost>
<proxy balancer://cluster>
Balancermember http://192.168.100.131:8001 loadfactor=1 route=1
Balancermember http://192.168.100.133:8001 loadfactor=1 route=2
Balancermember http://192.168.100.135:8001 loadfactor=1 route=3
#以上3条代表负载地址
</Proxy>
Method Two:
--Add the following section at the end of the httpd.conf configuration file, and the default access port is the Linux server host_ip:80 port:
LoadModule Weblogic_module modules/mod_wl_22.so
<ifmodule mod_weblogic.c>
Weblogiccluster 192.168.100.131:8001,192.168.100.133:8001,192.168.100.135:8001
MatchExpression/*
</IfModule>
<Location/hqoa>
SetHandler Weblogic-handler
Weblogiccluster 192.168.100.131:8001,192.168.100.133:8001,192.168.100.135:8001
MatchExpression *
MatchExpression * *
</Location>
Apache Proxy WebLogic Cluster approach