Websocket + apache

Hi guys, I’m having trouble configuring my production environment to accept the websocket.

1- My hosting server offers me Cpanel/WHM to manipulate the settings.
2- In cpanel there is an option to manipulate Nodejs by making it use the file server.js to execute the adonis start action.
3- Even installing the apache modules: a2enmod proxy, a2enmod proxy_http and a2enmod proxy_wstunnel. Modifying my apache vhosting file, I always have problems with Ws.browser.js:2252 WebSocket connection to ‘wss://api.alukey.com.br/adonis-ws?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9. eyJ1aWQiOjYsImlhdCI6MTU5MjE1MTYzOCwiZXhwIjoxNTkyMTYYNDM4fQ.oNydKloipPhuVLosrHOZLprOWGRXzYSz5hvE-frDQaY’ failed: Error during WebSocket handshake: ‘Connection’ header is missing

Maybe the registrant who has a knowledge of this is @virk

2 Likes