Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- map $http_upgrade $connection_upgrade {
- default upgrade;
- '' close;
- }
- location /socket.io/ {
- proxy_pass http://node;
- proxy_redirect off;
- proxy_http_version 1.1;
- proxy_set_header Host $http_host;
- proxy_set_header X-Forwarded-For $remote_addr;
- proxy_set_header X-Request-Id $txid;
- proxy_set_header X-Session-Id $uid_set+$uid_got;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection $connection_upgrade;
- proxy_buffering off;
- proxy_read_timeout 86400;
- keepalive_timeout 90;
- proxy_cache off;
- access_log /var/log/nginx/webservice.access.log;
- error_log /var/log/nginx/webservice.error.log;
- }
- location /web-service/ {
- proxy_pass http://node;
- proxy_redirect off;
- proxy_http_version 1.1;
- proxy_set_header Host $http_host;
- proxy_set_header X-Forwarded-For $remote_addr;
- proxy_set_header X-Request-Id $txid;
- proxy_set_header X-Session-Id $uid_set+$uid_got;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection $connection_upgrade;
- proxy_buffering off;
- proxy_read_timeout 86400;
- keepalive_timeout 90;
- access_log /var/log/nginx/webservice.access.log;
- error_log /var/log/nginx/webservice.error.log;
- rewrite /web-service/(.*) /$1 break;
- proxy_cache off;
- }
- Connection:upgrade
- Date:Fri, 08 Nov 2013 11:49:25 GMT
- Sec-WebSocket-Accept:LGB+iEBb8Ql9zYfqNfuuXzdzjgg=
- Server:nginx/1.4.2
- Upgrade:websocket
- Connection:Upgrade
- Sec-WebSocket-Accept:8nwPpvg+4wKMOyQBEvxWXutd8YY=
- Upgrade:websocket
- debug - served static content /socket.io.js
- debug - client authorized
- info - handshake authorized iaej2VQlsbLFIhachyb1
- debug - setting request GET /socket.io/1/websocket/iaej2VQlsbLFIhachyb1
- debug - set heartbeat interval for client iaej2VQlsbLFIhachyb1
- debug - client authorized for
- debug - websocket writing 1::
- debug - websocket writing 5:::{"name":"message","args":[{"message":"welcome to the chat"}]}
- debug - clearing poll timeout
- debug - jsonppolling writing io.j[0]("8::");
- debug - set close timeout for client 7My3F4CuvZC0I4Olhybz
- debug - jsonppolling closed due to exceeded duration
- debug - clearing poll timeout
- debug - jsonppolling writing io.j[0]("8::");
- debug - set close timeout for client AkCYl0nWNZAHeyUihyb0
- debug - jsonppolling closed due to exceeded duration
- debug - setting request GET /socket.io/1/xhr-polling/iaej2VQlsbLFIhachyb1?t=1383911206158
- debug - setting poll timeout
- debug - discarding transport
- debug - cleared heartbeat interval for client iaej2VQlsbLFIhachyb1
- debug - setting request GET /socket.io/1/jsonp-polling/iaej2VQlsbLFIhachyb1?t=1383911216160&i=0
- debug - setting poll timeout
- debug - discarding transport
- debug - clearing poll timeout
- debug - clearing poll timeout
- debug - jsonppolling writing io.j[0]("8::");
- debug - set close timeout for client iaej2VQlsbLFIhachyb1
- debug - jsonppolling closed due to exceeded duration
- debug - setting request GET /socket.io/1/jsonp-polling/iaej2VQlsbLFIhachyb1?t=1383911236429&i=0
- debug - setting poll timeout
- debug - discarding transport
- debug - cleared close timeout for client iaej2VQlsbLFIhachyb1
- location /socket.io/ {
- proxy_pass http://node;
- proxy_http_version 1.1;
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_set_header Host $host;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement