title: Network proxy blocks socket.io
body: <p>I'm using <code>nodejs</code>, <code>socket.io</code> and apache on the same server. Apache redirect requests from port 80 to 443 and after that it makes with the <code>SSLProxyEngine</code> a indirect redirect to my SSL-NodeJS server on port 3000 - Working fine,</p>
  
  <p><strong>The problem:</strong></p>
  
  <p>In some areas, only the ports 80 and 443 are allowed, not port 3000.</p>
  
  <p>When I change:</p>
  
  <pre><code>io.connect('https://domain.com:3000', { path: '/socket.io' });
  </code></pre>
  
  <p>to this:</p>
  
  <pre><code>io.connect('https://domain.com', { path: '/socket.io' });
  io.connect('https://domain.com:443', { path: '/socket.io' });
  // whatever ...
  </code></pre>
  
  <p>the server is not reachable (<code>net::ERR_CONNECTION_TIMED_OUT</code>).</p>
  
  <p>I tried to put the port to an public one like FTP (21) but the Browser said that this is not allowed to use this port.</p>
  
  <p>Do you have any ideas?</p>
  
  <p>Here are some files:</p>
  
  <p>Apache vhost:</p>
  
  <pre><code>&lt;VirtualHost *:443&gt;
      ServerName domain.com
  
      SSLProxyEngine On
      RequestHeader set Front-End-Https "On"
      ProxyPass / https://domain.com:3000/ retry=1 acquire=3000 timeout=600 Keepalive=On
      ProxyPassReverse / https://domain.com:3000/
      // localhost not working 
  
      SSLEngine on
      SSLCertificateKeyFile    ...
      SSLCertificateFile       ...
      SSLCertificateChainFile  ...
  
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>(I replaced my domain with domain.com)</p>