Project

General

Profile

Apache 2.4. + mod_proxy_balancer problem

Added by Ivan Cenov over 10 years ago

Our Rddmine ran successfully behind Apache 2.2 + mod_proxy balancer + thin till now on Windows Server 2003 64bit. After I upgraded Apache to 2.4, Apache crashes on start when loading mod_proxy balancer configuration. Without this configuration, Apache 2.4 starts successfully.
Here in proxy_balancer.txt I put attached the configuration that cannot load on Apache 2.4.
Redmine runs successfully on http://redmine.ourcompany.com:3001, http://redmine.ourcompany.com:3002, http://redmine.ourcompany.com:3003 and is accessible. The problem is in proxy_balancer, I did google but could not reach to root cause of this problem.

Please help on this issue.

Ivan


Replies (3)

RE: Apache 2.4. + mod_proxy_balancer problem - Added by Ivan Cenov over 10 years ago

Here is the configuration that crashes Apache 2.4

# $Id: httpd-proxy-mongrel.conf 166 2010-10-09 09:50:10Z imc $
# Redmine configuration behind Apache 2.2.x and mongrel

# Loading mod_proxy, mod_proxy_http and mod_proxy_balancer

<IfModule !mod_lbmethod_byrequests.c>
    LoadModule lbmethod_byrequests_module lib/modules/mod_lbmethod_byrequests.so
</IfModule>
<IfModule !mod_proxy.c>
    LoadModule proxy_module lib/modules/mod_proxy.so
</IfModule>
<IfModule !mod_proxy_http.c>
    LoadModule proxy_http_module lib/modules/mod_proxy_http.so
</IfModule>
<IfModule !mod_proxy_balancer.c>
    LoadModule proxy_balancer_module lib/modules/mod_proxy_balancer.so
</IfModule>

<Directory E:/data/redmine/public/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
#    Order deny,allow
#    Deny from all
#    Allow from 192.168.20
#   Require ip 192.168.20
    Require all granted
</Directory>

<Proxy *>
#    Order Deny,Allow
#    Deny from all
#    Allow from 192.168.20
#   Require ip 192.168.20
    Require all granted
</Proxy>

ProxyPass / balancer://redmine_cluster/
ProxyPassReverse / balancer://redmine_cluster/

<Proxy balancer://redmine_cluster>
    BalancerMember http://redmine.ourcompany.com:3001
    BalancerMember http://redmine.ourcompany.com:3002
    BalancerMember http://redmine.ourcompany.com:3003
    ProxySet lbmethod=byrequests
</Proxy>

RE: Apache 2.4. + mod_proxy_balancer problem - Added by Ivan Cenov over 10 years ago

P.S.

ping redmine.ourcompany.com works well; When trying http://redmine.ourcompany.com in Firefox, Firefox waits for a while and then responds that it cannot connect with the server redmine.ourcompany.com.

RE: Apache 2.4. + mod_proxy_balancer problem - Added by Ivan Cenov over 10 years ago

I found the problem:

mod_slotmem_shm, that is used by mod_proxy_balancer needs DefaultRuntimeDir to be set. I set this in main httpd.conf file, after ServerRoot directive.

Success.

    (1-3/3)