title: How to install mod_websocket with Lighttpd?
body: <p>I want to make Lighttpd works with websocket (Socket.IO) and it appears the only way to do so is to install an additionnal module: <code>mod_websocket</code>. I followed <a href="https://github.com/nori0428/mod_websocket/wiki/for-Ubuntu-Users" rel="nofollow">these steps</a> but I think I don't get the right <code>/path/to/lighttpd_top_srcdir</code>. I used <code>/usr/lib/lighttpd</code> as I saw all the modules in here when I <code>ls</code>-ed it.
  Apparently, I need to reinstall Lighttpd, am I right?</p>
  
  <p>So far, I got</p>
  
  <pre><code>copy mod_websocket files into /usr/lib/lighttpd
  cp src/mod_websocket*.{h,c} /usr/lib/lighttpd/src
  cp: target « /usr/lib/lighttpd/src » is not a directory
  </code></pre>
  
  <p>I need to do this because the error I get when trying to make websockets work is the following: <code>WebSocket connection to 'ws://&lt;myURL&gt;/socket.io/1/websocket/agXkznae1gmlDTutzJyk' failed: Unrecognized frame opcode: 5</code> (I use Google Chrome v33.0.1750.154).</p>
  
  <p>Is there another way to make websockets work with Lighttpd or do I need to change webserver?</p>
  
  <p>Many thanks!</p>