Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am using a load balancer to server a cluster. I can't get it to function.

LoadModule authz_host_module    modules/mod_authz_host.so
LoadModule mime_module          modules/mod_mime.so
LoadModule dir_module           modules/mod_dir.so
LoadModule log_config_module    modules/mod_log_config.so
LoadModule alias_module         modules/mod_alias.so
LoadModule setenvif_module      modules/mod_setenvif.so
LoadModule proxy_module         modules/mod_proxy.so
LoadModule ssl_module           modules/mod_ssl.so
LoadModule headers_module       modules/mod_headers.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module    modules/mod_proxy_http.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so

    RequestHeader set X_FORWARDED_PROTO 'https'
    ProxyPreserveHost on
    <Proxy balancer://redminecluster>
           BalancerMember http://127.0.0.1:3000
      #     BalancerMember http://127.0.0.1:3001
      #     BalancerMember http://127.0.0.1:3002
    </Proxy>
    ProxyPass / balancer://redminecluster
    ProxyPassReverse / balancer://redminecluster

The above code serves a mobile looking page with CSS styles broken, and internal server errors when navigating to pages. This works fine if I comment all the proxy lines above:

ProxyPass / http://127.0.0.1:3000/
ProxyPassReverse / http://127.0.0.1:3000/

Any ideas?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

I figured it out.

ProxyPass / balancer://redminecluster
ProxyPassReverse / balancer://redminecluster

These lines needed a / in front of them to work like so:

ProxyPass / balancer://redminecluster/
ProxyPassReverse / balancer://redminecluster/
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.