• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    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. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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