We have several virtual hosts defined which reverse proxy web traffic to another host. This part is working fine. One of the applications we are running however is also using web sockets to communicate with the browser. Before switching to OpenLiteSpeed we were using Apache as the reverse proxy. Here, all we had to do was:
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / https://backend.domain.com:12345/
ProxyPassReverse / https://backend.domain.com:12345/
to proxy all traffic to the backend. This also forwarded the web socket traffic.
In OpenLiteSpeed we have defined an External App:
extProcessor hd {
type proxy
address https://backend.domain.com:12345
maxConns 100
initTimeout 60
retryTimeout 0
respBuffer 0
}
and used a Rewrite rule in the virtual host definition:
rewrite {
enable 1
RewriteRule ^/(.*)$ https://hd/$1 [P,E=Proxy-Host:hd.domain.com]
}
The reverse proxy works fine, but no web socket traffic is being forwarded.
How do I get the web socket traffic forwarded as well?
Any help would be greatly appreciated.
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / https://backend.domain.com:12345/
ProxyPassReverse / https://backend.domain.com:12345/
to proxy all traffic to the backend. This also forwarded the web socket traffic.
In OpenLiteSpeed we have defined an External App:
extProcessor hd {
type proxy
address https://backend.domain.com:12345
maxConns 100
initTimeout 60
retryTimeout 0
respBuffer 0
}
and used a Rewrite rule in the virtual host definition:
rewrite {
enable 1
RewriteRule ^/(.*)$ https://hd/$1 [P,E=Proxy-Host:hd.domain.com]
}
The reverse proxy works fine, but no web socket traffic is being forwarded.
How do I get the web socket traffic forwarded as well?
Any help would be greatly appreciated.