CyberHosting

Openlitespeed as a WebSocket Proxy

I am building web applications related to the socket.
And my application runs well without https, if it has https, it will not connect.

And as guidance on nginx must configure additional proxy.

But I do not know on openlitespeed configured in any way?

Here's how to configure on nginx, please help me configure on openlitespeed!

https://www.nginx.com/blog/nginx-nodejs-websockets-socketio/

server {
server_name app.domain.com;
location / {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_pass http://socket_nodes;
}
}

location /assets {
alias /path/to/assets;
access_log off;
expires max;
}

Thank you!
Sign In or Register to comment.
CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion