I've spent quite a long time trying to fix WebSockets not working behind my nginx reverse proxy. Let me just show the error, the nginx configuration, and the server.xml file. As far as I can tell, I've followed all the directions provided by Confluence for setting up the proxy. I'm on Debian 7 amd64. If you need any more data, let me know.