I accidentally removed my solution. So here it is, again:
<VirtualHost *:80>
ServerName example.com
ErrorDocument 404 /404.html
ServerAdmin admin@example.com
ProxyPass /socket/ ws://myapp.com:8000/socket/
ProxyPassReverse /socket/ ws://myapp.com:8000/socket/
ProxyPass / http://myapp.com:8000/
ProxyPassReverse / http://myapp.com:8000/
</VirtualHost>
The example assumes your Apache reverse proxy is running on example.com, and your application is running on myapp.com with port 8000 published.
Just a little side note: it does not work for the live reload socket, because that one does not use the /socket/ path, and thus falls through over HTTP. I have not found a fix for that, yet.






















