Apache 2.4. + mod_proxy_balancer problem ยป proxy_balancer.txt
1 |
# $Id: httpd-proxy-mongrel.conf 166 2010-10-09 09:50:10Z imc $ |
---|---|
2 |
# Redmine configuration behind Apache 2.2.x and mongrel |
3 |
|
4 |
# Loading mod_proxy, mod_proxy_http and mod_proxy_balancer |
5 |
|
6 |
<IfModule !mod_lbmethod_byrequests.c> |
7 |
LoadModule lbmethod_byrequests_module lib/modules/mod_lbmethod_byrequests.so |
8 |
</IfModule> |
9 |
<IfModule !mod_proxy.c> |
10 |
LoadModule proxy_module lib/modules/mod_proxy.so |
11 |
</IfModule> |
12 |
<IfModule !mod_proxy_http.c> |
13 |
LoadModule proxy_http_module lib/modules/mod_proxy_http.so |
14 |
</IfModule> |
15 |
<IfModule !mod_proxy_balancer.c> |
16 |
LoadModule proxy_balancer_module lib/modules/mod_proxy_balancer.so |
17 |
</IfModule> |
18 |
|
19 |
<Directory E:/data/redmine/public/> |
20 |
Options Indexes FollowSymLinks MultiViews |
21 |
AllowOverride All |
22 |
# Order deny,allow |
23 |
# Deny from all |
24 |
# Allow from 192.168.20 |
25 |
# Require ip 192.168.20 |
26 |
Require all granted |
27 |
</Directory> |
28 |
|
29 |
<Proxy *> |
30 |
# Order Deny,Allow |
31 |
# Deny from all |
32 |
# Allow from 192.168.20 |
33 |
# Require ip 192.168.20 |
34 |
Require all granted |
35 |
</Proxy> |
36 |
|
37 |
ProxyPass / balancer://redmine_cluster/ |
38 |
ProxyPassReverse / balancer://redmine_cluster/ |
39 |
|
40 |
<Proxy balancer://redmine_cluster> |
41 |
BalancerMember http://redmine.ourcompany.com:3001 |
42 |
BalancerMember http://redmine.ourcompany.com:3002 |
43 |
BalancerMember http://redmine.ourcompany.com:3003 |
44 |
ProxySet lbmethod=byrequests |
45 |
</Proxy> |