WebSocks es compatible con Apache a partir de la versión 2.4.xx. Aquí hay algunas configuraciones mínimas para Apache 2.4.xx. en Ubuntu 14.04.x
Instale los módulos adecuados:a2enmod proxy
a2enmod proxy_wstunnel
Configure VirtualHost (aquí solo se muestra la parte de WebSock)
# Make sure the backend server gets the right URL in 'Location:' http Header
ProxyPreserveHost On
#
# Forward only the websocks requests to the Websocks handler in the backend server
RewriteRule ^/websock/(.*) ws://my.backend.net:8080/websock/$1 [P]
ProxyPassReverse / ws://my.backend.net:8080/
#
# Forward the rest of the requests to the backend server as http requests
ProxyPass / http://my.backend.net:8080/
ProxyPassReverse / http://my.backend.net:8080/