• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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

Lrnt

Regular 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