LoadBalancer für LXContainer
This commit is contained in:
parent
39c18089fe
commit
c312324b0b
25
conf/kapitel/kapitel_13_lxc.conf
Normal file
25
conf/kapitel/kapitel_13_lxc.conf
Normal 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>
|
Loading…
Reference in a new issue