I needed this for my installation of the Traccar site. I did an apt-update /apt-upgrade. I executed dpkg -s apache2 which showed I was running Version: 2.2.22-13+deb7u7. I started following the instructions in LearningAboutTech's answer above.
In the time passed, some of the process changed:
- I started with apt-get install apache2-threaded-dev
- I then sought out mod_proxy_wstunnel.c, I used the version here, and fetched it with wget
- I then used the command apxs2 -i -a -c mod_proxy_wstunnel.c
- After checking the configuration files, I saw that the module was
already loaded in the mods-enabled folder.
- I had already added the ProxyPass and ProxyReverse in the site configuration files. So, the next thing was to service apache2 restart and test.
Testing the site, it performed as expected, I did see warnings in the error
file:
[warn] proxy: No protocol handler was valid for the URL /api/socket. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
At some point, I will look into this further - it may be related to what I have just done or some other configuration in my setup - but I'm happy my site is working as expected!