Can you please help verifying and tuning with additional guidance?
scenario
OS centos
webserver apache http version 2.2.23
two weblogic servers clustered
two webservers
above are behind a load balancer
Basically wanted to do url redirection and load balancing(without modifying the session) of traffic
when i type common agent.abconline.com it should get redirected to app server 192.168.0.1:7001/agent
staing.abconline.com should get redirected to 192.168.0.1;7001/staging
the above said i am able to do with mod_rewrite alone, but while trying with mod_proxy and load balancing, i am not able to get redirected to said URL,
following are the config
NameVirtualHost *:80
<VirtualHost *:80>
ServerName agent.abconline.com
RewriteEngine On
<Proxy balancer://agentcluster>
BalancerMember
http://192.168.0.1:7003 route=1 loadfactor=50 retry=60
BalancerMember
http://192.168.0.2:7003 route=1 loadfactor=50 retry=60
</Proxy>
# Redirect all non-static requests to agent
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ balancer://agentcluster%{REQUEST_URI} [P,QSA,L]
ProxyPass /abc-oper balancer://agentcluster/abc-oper
ProxyPassReverse /abc-oper balancer://agentcluster/abc-oper
ProxyPreserveHost on
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ErrorLog /apps/apache/logs/agent.abconline.com.error.log
CustomLog /apps/apache/logs/agent.abconline.com.access.log combined
LogLevel debug
</VirtualHost>
<VirtualHost *:80>
ServerName staging.abconline.com
RewriteEngine On
<Proxy balancer://stagingcluster>
BalancerMember
http://192.168.0.1:7003 route=1 loadfactor=50 retry=60
BalancerMember
http://192.168.0.2:7003 route=1 loadfactor=50 retry=60
</Proxy>
# Redirect all non-static requests to agent
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ balancer://stagingcluster%{REQUEST_URI} [P,QSA,L]
ProxyPass /abc-oper balancer://stagingcluster/abc-oper
ProxyPassReverse /abc-oper balancer://stagingcluster/abc-oper
ProxyPreserveHost on
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ErrorLog /apps/apache/logs/staging.abconline.com.error.log
CustomLog /apps/apache/logs/staging.abconline.com.access.log combined
LogLevel debug
</VirtualHost>