LoadBalancer für LXContainer

This commit is contained in:
Sven Velt 2024-10-18 14:51:02 +02:00
parent 39c18089fe
commit c312324b0b

View file

@ -0,0 +1,25 @@
<VirtualHost 172.31.31.105:80>
ServerName revproxy-lxc.sv
<Location /balancer-manager>
SetHandler balancer-manager
Require ip 172.31.31.0/24
Require local
</Location>
<Proxy balancer://lxc/>
BalancerMember http://192.168.0.209 route=lxc1
BalancerMember http://192.168.0.236 route=lxc2
BalancerMember http://192.168.0.142 route=lxc3
BalancerMember http://192.168.0.251 route=lxc4
# ACHTUNG! Wird nicht gesetzt!
ProxySet stickysession=LXCID
</Proxy>
ProxyPass /balancer-manager !
ProxyPass / balancer://lxc/
CustomLog logs/revproxy-lxc_access.log combined
ErrorLog logs/revproxy-lxc_error.log
</VirtualHost>