title: Proxy websocket wss:// to ws:// apache
body: <p>i searched alot but i couldnt connect my websocket to wss:// ,
  i found that there is a way to proxy  wss://domain.com:9090 and apache apply the proxy on it and redirect request to where the normal ws://domain.com:9090 server is running </p>
  
  <pre><code>ProxyPass /websocket ws://domain.com:9090
  ProxyPassReverse /websocket ws://domain.com:9090
  </code></pre>
  
  <p>this code in apache config will send request from any address ended with /websocket to ws://domain.com:9090
  ex : ws://websocket will be ws://domain.com:9090</p>
  
  <p>i want to do it for wss:// also
  ex wss://websocket must point to ws://domain.com:9090</p>
  
  <p>it dosnt work and i get this error in browser console :</p>
  
  <pre><code>failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
  </code></pre>
  
  <p>is there any mistake here ?
  thanks you .</p>