I am unable to create a websocket with vhots enabled through apache2 on my local machine. In FF:
WebSocket is not defined
var socket = new WebSocket('ws://test.localhost.in/soc')
Chrome gives a 404 Error.
Routes file has been defined properly.
WS /soc Home.HomeWebSocket.listen
VHost config:
<VirtualHost *>
ProxyPreserveHost on
ServerName localhost.in
ServerAlias *.localhost.in
ProxyPass / http://localhost:9000/
ProxyPassReverse / http://localhost:9000/
SetEnv force-proxy-request-1.0 1
SetEnv proxy-nokeepalive 1
</VirtualHost>
I can confirm it is due to VHosts because I can successfully run the chat example through localhost:9000/ but not test.localhost.in.