V
V
Vladislav Nagorny2016-04-27 12:39:10
Nginx
Vladislav Nagorny, 2016-04-27 12:39:10

Why does the 400 error occur in the nginx+socket.io+ssl bundle?

Good afternoon. For 2 days I want to solve the problem of WebSocket connection to 'wss:// failed: Error during WebSocket handshake: Unexpected response code: 400

location / {
        proxy_pass http://socket_nodes;
                      proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }

Help solve the problem

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Selivanov, 2016-04-27
@selivanov_pavel

And what do the logs show on what should process the request?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question