someonefromspace
New Pleskian
hi everyone;
I setup a websocket connection on my host, i can connect it and use as well, no problem on http:// schema. See: Screenshot (it's okay).
But I want to use this connection websocket connection on SSL - https:// schema. At at time, I get connection error like this.
Proxy mode is on: Screenshot
PHP works with NGINX, see: Screenshot
What I tried:
I added this block to /..vhosts/domain.com/mysub.domain.com/conf/nginx/nginx.conf
Then, I tried to connection on SSL schema,
they don't work. the last error which i got: Screenshot
What could be solution?? and thank you.
I setup a websocket connection on my host, i can connect it and use as well, no problem on http:// schema. See: Screenshot (it's okay).
Code:
var conn = new WebSocket('ws://my.domain.com:2001');
But I want to use this connection websocket connection on SSL - https:// schema. At at time, I get connection error like this.
Proxy mode is on: Screenshot
PHP works with NGINX, see: Screenshot
What I tried:
I added this block to /..vhosts/domain.com/mysub.domain.com/conf/nginx/nginx.conf
Code:
location ~ /WsConn
{
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass https://mysub.domain.com:2001;
}
Then, I tried to connection on SSL schema,
Code:
var conn = new WebSocket('wss://my.domain.com/WsConn');
Code:
var conn = new WebSocket('ws://my.domain.com/WsConn');
they don't work. the last error which i got: Screenshot
What could be solution?? and thank you.