1. Home
  2. Technical
  3. Apache
  4. Secure WebSocket (WSS)
  1. Home
  2. Technical
  3. Node.js
  4. Secure WebSocket (WSS)

Secure WebSocket (WSS)

The easiest way to use a secure websocket connection on the Zone virtual server platform is to connect through the Apache wstunnel module.

To do this, add the following line to the .htaccess file:

RewriteRule .* ws://127.x.x.x:3000%{REQUEST_URI} [P,QSA,L]

3000 must be replaced by the port that the application is listening to.

127.x.x.x must be replaced with the correct loopback IP.

The loopback IP can be seen by typing  vs-loopback-ip -4 in SSH shell or from My Zone environment under System Information.

Updated on 19. Apr 2024
Was this article helpful?

Related Articles