title: Socket.io apache reverse proxy unable to connect
body: <p>I'm using Socket.io ver 1.0.6.
  I have problem with using socket.io and apache proxy.</p>
  
  <p>Proxy have defined in vhots and look like this:</p>
  
  <p></p>
  
  <pre><code>    ServerAdmin webmaster@localhost
      ServerName site.loc
      DocumentRoot /home/site/Private/dev/site
  
      ProxyPass /node http://localhost:5000
      ProxyPassReverse /node http://localhost:5000
  </code></pre>
  
  <p></p>
  
  <p>so url <a href="http://site.loc/node" rel="nofollow">http://site.loc/node</a> should run <a href="http://site.loc:5000" rel="nofollow">http://site.loc:5000</a></p>
  
  <p>node server look like this:</p>
  
  <pre><code>var port = 5000;
  var server = require('http').Server();
  var io = require('socket.io')(server);
  
  io.on('connection', function(socket){
  
  });
  
  server.listen(port);
  console.log('Listening on port: ' + port);
  </code></pre>
  
  <p>and client:</p>
  
  <pre><code>var socket = io.connect('ws://site.loc', {path: '/node/socket.io'});
  </code></pre>
  
  <p>And I receive message with </p>
  
  <blockquote>
    <p>Error during WebSocket handshake: Unexpected response code: 400</p>
  </blockquote>
  
  <p>I don't want to use in node server namespace, but only route all data from url with /node to port 5000.</p>
  
  <p>Thanks for help</p>