Apache Reverse Proxy Load Balancer

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Apache Reverse Proxy Load Balancer

Postby al4nzonealor » 17. July 2019 07:56

I have a proxy server ee.ee.ee.ee that is configured to load balance my superset application sitting on 2 servers xx.xx.xx.xx:8088 and yy.yy.yy.yy:8088 and druid sitting on zz.zz.zz.zz:8888.

What I want is to be able to reference my proxy server with either /superset or /druid and each will re-direct me to each of the applications.

As per the configs, setting the ProxyPass / balancer://superset/ redirects me to the superset by default as for both applications, there are no paths to access them ie they are being accessed directly eg xx.xx.xx.xx:8088 and yy.yy.yy.yy:8088 and not xx.xx.xx.xx:8088/superset and zz.zz.zz.zz:8888/druid.

The load balance manager is already configured in the httdp.conf file.

The code is as below for the virtual host:

NameVirtualHost *:80
<VirtualHost *:80>

<Proxy balancer://superset>
BalancerMember http://xx.xx.xx.xx:8088
BalancerMember http://yy.yy.yy.yy:8088
</Proxy>

<Proxy balancer://druid>
BalancerMember http://zz.zz.zz.zz:8888
</Proxy>

ProxyPreserveHost On

ProxyPass /bigdata-balancer-manager !
ProxyPass /superset balancer://superset/ nofailover=off
ProxyPassReverse /superset balancer://superset/

ProxyPass /druid balancer://druid/ nofailover=off
ProxyPassReverse /druid balancer://druid/

</VirtualHost>
al4nzonealor
 
Posts: 1
Joined: 17. July 2019 07:52
XAMPP version: 7.3
Operating System: Windows

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 129 guests