meteor-up icon indicating copy to clipboard operation
meteor-up copied to clipboard

WebSocket connection to 'wss://www.domain.com/sockjs/225/ix6zur43/websocket' failed: Error during WebSocket handshake: Unexpected response code: 400

Open eugle opened this issue 4 years ago • 0 comments

It is suspected that Nignx configuration has enabled SSL. There is no error when accessing a URL that is not encrypted by HTTP, but it will report an error after encrypted by HTTPS. Where should I find the solution

This custom Location is enabled

proxy: {
		domains: 'www.domain.com',
		nginxLocationConfig:'./location.conf',

location.conf

proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

The problem is still

eugle avatar Feb 08 '21 09:02 eugle