title: Preserve protocol in httpd proxy
body: <p>I need to configure in Apache 2.4.9 (with mod_proxy and mod_proxy_wstunnel activated) a proxy with this mapping:</p>
  
  <ul>
  <li><a href="http://my.proxy/" rel="nofollow">http://my.proxy/</a>*  -->  <a href="http://my.backend:8080/" rel="nofollow">http://my.backend:8080/</a>*</li>
  <li>ws://my.proxy/*    -->  ws://my.backend:8080/*</li>
  </ul>
  
  <p>E.g.:</p>
  
  <ul>
  <li>ws://my.proxy/cometd-demo-2.8.0/cometd --> ws://my.backend:8080/cometd-demo-2.8.0/cometd</li>
  <li><a href="http://my.proxy/cometd-demo-2.8.0/cometd" rel="nofollow">http://my.proxy/cometd-demo-2.8.0/cometd</a> --> <a href="http://my.backend:8080/cometd-demo-2.8.0/cometd" rel="nofollow">http://my.backend:8080/cometd-demo-2.8.0/cometd</a></li>
  <li><a href="http://my.proxy/cometd-demo-2.8.0/jquery-examples/chat/" rel="nofollow">http://my.proxy/cometd-demo-2.8.0/jquery-examples/chat/</a> --> <a href="http://my.backend:8080/cometd-demo-2.8.0/jquery-examples/chat/" rel="nofollow">http://my.backend:8080/cometd-demo-2.8.0/jquery-examples/chat/</a></li>
  </ul>
  
  <p>In other words, I need a proxy that keeps (preserves) the protocol.</p>
  
  <p>This configuration does not work:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
     ...
     ProxyRequests Off
     ProxyPreserveHost Off
     ProxyPass / http://my.backend:8080/
     ProxyPassReverse / http://my.backend:8080/
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>because all request (no matter protocol) are proxied to http*</p>
  
  <p>Anyone knows how can I solve this?</p>
  
  <p>Thanks!</p>