title: Apache web server Load balancing
body: <p>We have a requirement in out environment where apache web server is installed, in which ssl and non-ssl port is configured to listen on 8080 and 4443 respectively. Now i want to load balance the request based on input, if the incoming request is ssl it should load balance the request to "https" and if its non-ssl it should load balance the request to "http". Have tried the below method but its not working as expected. Can someone help?</p>
  
  <pre><code>   &lt;Proxy balancer://mybalancerhttp&gt;
              BalancerMember http://localhost1/
              BalancerMember http://localhost2/
              ProxySet lbmethod=byrequests
     &lt;/Proxy&gt;
  
     ProxyPass / "balancer://mybalancerhttp/"
     ProxyPassReverse / "balancer://mybalancerhttp/"
  
     &lt;Proxy balancer://mybalancerhttps&gt;
              BalancerMember https://localhost1/
              BalancerMember https://localhost2/
              ProxySet lbmethod=byrequests
     &lt;/Proxy&gt;
  
     ProxyPass / "balancer://mybalancerhttps/"
     ProxyPassReverse / "balancer://mybalancerhttps/"
  </code></pre>
  
  <p>Thanks</p>