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!


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 so much!


Check this wiki, it's made for rocketchat, but the websocket procedure is same.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.