• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question Redirect wss:// to ws:// with Apache and ProxyPass

Lrnt

Basic Pleskian
Hi,

I need to use websocket to send command to a "Soundcraft UI12" from my (secured) website (https).
This device only accept unsecure websocket (on ws://[DEVICE_IP).
I read a lot a of things about ProxyPass/ProxyReverse and tried to use them without success.

Here what I have got :
  • OS : Debian 9.11‬
  • Plesk Onyx Version 17.8.11
  • Domain : mydomain.com on https:// (Let's encrypt certificate)
  • Device : Soundcraft Ui12 on lan (IP: 10.0.0.8)
  • Apache modules enabled : proxy, proxy_wstunnel, proxy_connect, proxy_http
I put this in the Apache Additionnal Directive on mydomain.com :

Code:
ProxyRequests Off
ProxyPreserveHost On
ProxyPass /wss ws://10.0.0.8
ProxyPassReverse /wss ws://10.0.0.8

Then I change websocket address from ws://10.0.0.8 to wss://mydomain.com/wss
But it does not work.

What am I missing?
I just want to set this without NGINX just in Apache for mydomain.com in order to send command to the device on HTTPS in Chrome.

Note: I will try to use later regex like ProxyPass /wss/(*.) ws://$1 if possible
 
Did you find a solution finally ?

A bit late... (3 years... sorry) I finally choose to do nothing else than not redirect HTTP to HTTPS.
So I was able to reach ws:// with no redirect to wss://
 
Back
Top