Error during WebSocket handshake: Unexpected response code: 503

Max

Administrator
Staff member
It seems you bind ha proxy on the same port as WCS.
WCS is bound on 8443
In your configuration ha proxy is bound on 8443 too.

If you use ha proxy, you can setup ha proxy with single port 443 and setup two mappings:
WCS
Code:
1) 443 (webosckets wss) > 8080 (websockets)
Apache or nginx
Code:
2) 443 (https) > 80 (http)
Once you have such configuration you will be able to open your pages over https:
Code:
https://your-host
and connect to backed WCS server
Code:
wss://your-host:443
 

mjdc

New Member
Thank you for your reply
I tried to change WCS wss port from 8443 to 8433 then it works
Is it mean that WCS only use ws8080 and the wss port can be abandoned or the configs may make some problems?
 

Max

Administrator
Staff member
Maybe your 8443 port was bound by another application.
Try
Code:
netstat -nlp | grep 8443
to get more information
 
Top