Apache Proxy WebLogic Cluster approach

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.