title: Socket.io Chat on Dreamhost: Hiding the URL
body: <p>My socket.io chat is accessible through the URL <a href="http://example.com:8080/" rel="nofollow">http://example.com:8080/</a>. Dreamhost does not allow us to bind 80, so I am binding it on 8080.</p>
  
  <p>I wanted to get rid of the port number in the URL. So, I used Dreamhost's Proxy Server feature (http://wiki.dreamhost.com/Proxy_Server), which is Apache's mod_proxy.</p>
  
  <p>I proxied the port number 8080 to the URL <a href="http://example.com/socketchat" rel="nofollow">http://example.com/socketchat</a>. When I go to that URL, the chat does not work. I get this error:</p>
  
  <p>"Proxy Error
  The proxy server received an invalid response from an upstream server.
  The proxy server could not handle the request GET /socket/.
  Reason: Error reading from remote server"</p>
  
  <p>Is there a way to get rid of the port number in the URL that works with socket.io? If nothing works, would it be a security risk if I leave the port number in the URL when I launch my website to the public? Thanks.</p>