Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5056

How to set routes to specific WAS in Apache with mod_proxy?

$
0
0

i'm in trouble with setting Apache

I want to set loadbalancer in "/" root path and ways to specific WAS

WAS1 -> localhost:18080

WAS2 -> localhost:28080

and if I type like this "http://../route1 " => need to connect WAS1

http://../route1 => WAS 1 (localhost:18080)

http://../route2 => WAS 2 (localhost:28080)

<VirtualHost *:80>ServerName localhostProxyRequests OffProxyPreserveHost On<Location /balancer-manager>      SetHandler balancer-manager      #Require ip 10.0.0.1 10.0.0.2</Location>ProxyPass /balancer-manager !<Location /route1>ProxyPass "http://localhost:18080"ProxyPassReverse "http://localhost:18080"</Location>ProxyPass /route1 !<Location /route2>ProxyPass "http://localhost:28080"ProxyPassReverse "http://localhost:28080"</Location>ProxyPass /route2 !<Proxy "balancer://bal">        BalancerMember "http://localhost:18080"        BalancerMember "http://localhost:28080"</Proxy>ProxyPass "/" "balancer://bal/"ProxyPassReverse "/" "balancer://bal/"</VirtualHost>

httpd.conf is above.

now status

  1. loadbalacing is working

  2. /balance-manager is working

  3. /route1 and /route2 is not working

Thank you


Viewing all articles
Browse latest Browse all 5056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>