title: ws_tunnel Apache->Websocket server not working
body: <p>I have a local web socket server running on WSS:// port 9000. In the same server I have apache running as well. </p>
  
  <p>When I try and connect from my remote client directly to port 9000 via WSS like this:</p>
  
  <p><code>wss://myserver:9000</code></p>
  
  <p>it works fine. However, I blocked port 9000 on my router and am trying to access it via apache (which is running on SSL).</p>
  
  <p>When I try and access 
  <code>wss://myserver/</code></p>
  
  <p>I can see the logs in Apache that it issued a GET but my web socket server does not receive the connection.</p>
  
  <p>I've read through various SO threads and I think I have my ordering correct.</p>
  
  <p>Details:</p>
  
  <p>Apache Version:
  <code>Server version: Apache/2.4.7 (Ubuntu)</code></p>
  
  <p>sudo apache2ctl -M shows proxy_* modules running
  <code>
  proxy_module (shared)
  proxy_http_module (shared)
  proxy_wstunnel_module (shared)
  </code></p>
  
  <p>Apache configuration: (relevant lines inside VirtualHost)</p>
  
  <pre><code>ProxyPass / wss://localhost:9000/
  ProxyPassReverse / wss://localhost:9000/
  
  &lt;Proxy *&gt;
    Order deny,allow
    Allow from all
  &lt;/Proxy&gt;
  </code></pre>
  
  <p>Note that both my local web socket server and Apache are configured to use the same certificates </p>
  
  <p>(I'm not sure if I need the Proxy * part, but I saw it in one SO thread)</p>
  
  <p>And here are debug logs:</p>
  
  <p><a href="http://pastebin.com/gqVp3Pz5" rel="nofollow">http://pastebin.com/gqVp3Pz5</a></p>
  
  <p>Thanks</p>