• 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!
  • 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 Websocket Problem on wss

Javad

New Pleskian
I'm having troubles connecting to a WebSocket server via WebSocket Secure connection (wss://) from the browser. Standard connections (ws://) work fine.

To solve this problem in the ispmanager, I used the following code in the site config file and the problem was resolved:
Code:
ProxyPass /echobot ws://coinbazaar.io:9000/echobot
I added the above code in the Additional Apache directives section in plesk. But this method did not resolve my problem and it occurs with error.
Error:
Code:
WebSocket connection to 'wss://coinbazaar.io:9000/echobot' failed: WebSocket opening handshake timed out
 
I have same problem!
Try to connect from client side to wss://example.com/ws
And want to proxy connection to ws// , because my server side is non secure
My apache additional dirrectives:
SSLProxyEngine On
RewriteEngine on
ProxyRequests Off
ProxyPreserveHost on
ProxyPass /ws/ ws://examplae.com:8090/ws
ProxyPassReverse /ws/ ws://examplae.com:8090/ws

It returns 500 error and:
"AH01144: No protocol handler was valid for the URL /ws/. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule."

All modules in Apache are enabled.
Javad, did you solve problem? Help anybody please
 
I'm having troubles connecting to a WebSocket server via WebSocket Secure connection (wss://) from the browser. Standard connections (ws://) work fine.

To solve this problem in the ispmanager, I used the following code in the site config file and the problem was resolved:
Code:
ProxyPass /echobot ws://coinbazaar.io:9000/echobot
I added the above code in the Additional Apache directives section in plesk. But this method did not resolve my problem and it occurs with error.
Error:
Code:
WebSocket connection to 'wss://coinbazaar.io:9000/echobot' failed: WebSocket opening handshake timed out
Dear Javad. After 5 days of coding I found totally solution. Use nginx proxy, not apache. It work fine for me

location /echobot/ {
proxy_pass http://echobot:8090;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
 
Back
Top