Never been to CodeSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

Beware the trailing slash in mod_proxy_balancer (part 2) (See related posts)

It is a little tricky to prevent mod_proxy_balancer from adding a trailing slash.

This will redirect /MyService?wsdl to http://example.com:X0000/MyService/

    ProxyPass /MyService balancer://playlist_service_balancer

    <Proxy balancer://playlist_service_balancer>
      BalancerMember http://example.com:10000/MyService
      BalancerMember http://example.com:20000/MyService

      ProxySet lbmethod=byrequests
    </Proxy>


This will redirect /MyService?wsdl to http://example.com:X0000/MyService?wsdl
  ProxyPass /MyService balancer://playlist_service_balancer/MyService

  <Proxy balancer://playlist_service_balancer>
    BalancerMember http://example.com:10000/
    BalancerMember http://example.com:20000/

    ProxySet lbmethod=byrequests
  </Proxy>


see https://issues.apache.org/bugzilla/show_bug.cgi?id=39203

You need to create an account or log in to post comments to this site.