• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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