title: How to configure Apache 2.4 to use WebWockets using Node.js Express and Socket.IO?
body: <p>We are configuring a bot application which uses Socket.IO (WebSockets) to connect to a Node.js Express server which sits behind Apache 2.4.</p>
  
  <p>We need to configure a reverse proxy to be able to communicate from the chat application to the Express server. We have tried the follwing configurations but we have had no success as yet:</p>
  
  <ol>
  <li><pre><code>&lt;Location /globalsalesreporting_bot/&gt;
      RewriteEngine On
      RewriteCond %{REQUEST_URI}  ^/globalsalesreporting_bot/socket.io            [NC]
      RewriteCond %{QUERY_STRING} transport=websocket    [NC]
      RewriteRule "^/globalsalesreporting_bot/socket.io"           "wss://10.11.74.4:4010/socket.io/" [P,L]
  
      ProxyPass https://10.11.74.4:4010/
      ProxyPassReverse https://10.11.74.4:4010/
  &lt;/Location&gt;
  </code></pre></li>
  <li><pre><code>ProxyPass "/XXX_bot/" "https://10.11.74.4:4010/XXX_bot/"
  ProxyPassReverse "/XXX_bot/" "https://10.11.74.4:4010/XXX_bot/"
  </code></pre></li>
  <li><pre><code>ProxyPass /socket.io/ https://10.11.74.4:4010/socket.io/
  ProxyPassReverse /socket.io/ https://10.11.74.4:4010/socket.io/
  </code></pre></li>
  </ol>
  
  <p>Can some one guide to the correct steps or tutorial to configure Apache for using WebSockets?</p>