Hi, I am trying to configure nginx as a reverse proxy for websockets. I configure my server as follows:
server { listen 80; server_name www.mydomain.com; access_log off;
but I get an error from the client, for example,
Connection to WebSocket with 'ws: //www.application.com/ws' failed: error during WebSocket handshake: the value of the "Connection" header is not "updated"
I probably misconfigured the configuration, but I could not see it.
Client request headers follow
GET ws://www.talkybee.com/ws HTTP/1.1 Pragma: no-cache Origin: http://www.talkybee.com Host: www.talkybee.com Sec-WebSocket-Key: Ol+O1IdaLEsHxxWRBt2oqg== User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36 Upgrade: websocket Sec-WebSocket-Extensions: x-webkit-deflate-frame Cache-Control: no-cache Connection: Upgrade Sec-WebSocket-Version: 13
When I make a normal direct connection, my connection works. Here is the title of the work request.
Cache-Control:no-cache Connection:Upgrade Host:www.talkybee.com:8765 Origin:http://www.talkybee.com:8765 Pragma:no-cache Sec-WebSocket-Extensions:x-webkit-deflate-frame Sec-WebSocket-Key:Y026b/84aUkMxVb0MaKE2A== Sec-WebSocket-Version:13 Upgrade:websocket User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36
source share