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:// ProxyPassReverse /mqtt ws:// 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 :