Mosquitto

Apache websockets with proxy_wstunnel and mosquitto

Spend last weekend trying to make apache with proxy_wstunnel to work. The solution recommended is to add this in the apache config: ProxyRequests off ProxyPass /mqtt ws://127.0.0.1:8082 ProxyPassReverse /mqtt ws://127.0.0.1:8082 But no matter what it is a no go. So, where is the problem? It’s the libwebsockets it doesn’t understand custom http headers X-… but apache adds some. To add support for them in the file lextable-strings.h append before the blank string :