apache代理weblogic集羣辦法

方法一:linux

--關閉iptables和selinuxweb

--在apache配置文件httpd.conf最下面添加以下語句,而後重啓apache:apache

ServerName 127.0.0.1:80服務器

NameVirtualHost 127.0.0.1:80blog

<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>ip

<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=3get

#以上3條表明負載地址
</Proxy>io

 

方法二:table

--在httpd.conf配置文件末尾添加以下部分,默認訪問端口爲linux服務器host_ip:80端口:module

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>

相關文章
相關標籤/搜索