title: Websocket port problem because already in use?
body: <p>Based on the expert recommendation of the IANA, the WebSocket protocol by default uses port 80 for regular WebSocket connections.</p>
  <p>How can I make my websocket listen to port 80 when the Apache server is already listening to this port?</p>
  <p>I made it works when my WebSocket were using port 12345 but I do not want to open to everyone that port and IANA recommend port 80... but I do not get how to make it works with that port?</p>
  <h3>Idea #1</h3>
  <p>I have read that for Jabber server that you can use Apache to redirect the call. Here is an example from <a href="http://technophiliac.wordpress.com/2008/05/28/ever-wondered-how-gmailfacebook-chat-works/" rel="nofollow noreferrer">this website</a> :</p>
  <pre><code>&lt;VirtualHost *:80&gt;
      Servername yourdomain.com
      DocumentRoot /var/www
      AddDefaultCharset UTF-8
      RewriteEngine On
      RewriteRule ^/http-bind/ http://jabber.yourdomain.com:5280/http-bind/ [P]
  &lt;/VirtualHost&gt;
  </code></pre>
  <p>Maybe I can do something like that with the websocket... what is your thought?</p>