title: How to proxy WSS to WS with .htaccess
body: <p>I'm trying to connect to a websocket server that is not WSS over HTTPS. For that, I'm trying to proxy the WSS to WS using apache config.</p>
  
  <p>I've tried using ProxyPass but I only have access to the .htaccess file. So I've also tried using mod_rewrite with a [P] flag, but still no luck.</p>
  
  <p>this is what my .htaccess file looks like right now :</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{HTTP:UPGRADE} ^WebSocket$
  RewriteCond %{HTTP:CONNECTION} Upgrade$
  RewriteRule /(.*) ws://127.0.0.1:9002/ [P]
  
  </code></pre>
  
  <p>However it doesn't seem to proxy because I still get a connection error from a wss connection.</p>