开启模块如下:
LoadModule weblogic_module modules/mod_wl_22.so LoadModule lbmethod_byrequests_module modules/mod_lbmethod_byrequests.so LoadModule slotmem_shm_module modules/mod_slotmem_shm.so LoadModule xml2enc_module modules/mod_xml2enc.so LoadModule proxy_module modules/mod_proxy.so LoadModule proxy_balancer_module modules/mod_proxy_balancer.so LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule rewrite_module modules/mod_rewrite.so
负载均衡配置如下
TimeOut 600 RewriteEngine On RewriteRule ^/$ /yyaq/login.action [R] RewriteRule ^/yyaq$ /yyaq/login.do [R] #################################################### #<Location /dci_lt> #WebLogicCluster 127.0.0.1:7005,192.168.1.35:7005 #MatchExpression /dci_lt/* #</Location> ProxyPreserveHost On ProxyRequests Off ProxyPass /dci_lt http://127.0.0.1:7005/dci_lt ProxyPassReverse /dci_lt http://127.0.0.1:7005/dci_lt <Location /dataResourceService> WebLogicCluster 127.0.0.1:7003,127.0.0.1:7005 MatchExpression /dataResourceService/* </Location> <Location /imagesApplication> WebLogicCluster 127.0.0.1:7003,127.0.0.1:7005 MatchExpression /imagesApplication/* </Location> <Location /ministryEducation> WebLogicCluster 127.0.0.1:7003,127.0.0.1:7005 MatchExpression /ministryEducation/* </Location> <Location /cqjw> WebLogicCluster 127.0.0.1:7003,127.0.0.1:7005 MatchExpression /cqjw/* </Location> <Location /yyaq> WebLogicCluster 127.0.0.1:7003,127.0.0.1:7005 MatchExpression /yyaq/* </Location> <Location /personnelcodingsys> WebLogicCluster 127.0.0.1:7003,127.0.0.1:7005 MatchExpression /personnelcodingsys/* </Location>