fixed socket.io to play nicely with nginx proxy