Advertisement
Guest User

Untitled

a guest
Jul 29th, 2014
653
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.26 KB | None | 0 0
  1. map $http_upgrade $connection_upgrade {
  2. default upgrade;
  3. '' close;
  4. }
  5.  
  6. location /socket.io/ {
  7. proxy_pass http://node;
  8. proxy_redirect off;
  9. proxy_http_version 1.1;
  10. proxy_set_header Host $http_host;
  11. proxy_set_header X-Forwarded-For $remote_addr;
  12. proxy_set_header X-Request-Id $txid;
  13. proxy_set_header X-Session-Id $uid_set+$uid_got;
  14. proxy_set_header Upgrade $http_upgrade;
  15. proxy_set_header Connection $connection_upgrade;
  16. proxy_buffering off;
  17.  
  18. proxy_read_timeout 86400;
  19. keepalive_timeout 90;
  20.  
  21. proxy_cache off;
  22.  
  23. access_log /var/log/nginx/webservice.access.log;
  24. error_log /var/log/nginx/webservice.error.log;
  25. }
  26.  
  27. location /web-service/ {
  28. proxy_pass http://node;
  29. proxy_redirect off;
  30. proxy_http_version 1.1;
  31. proxy_set_header Host $http_host;
  32. proxy_set_header X-Forwarded-For $remote_addr;
  33. proxy_set_header X-Request-Id $txid;
  34. proxy_set_header X-Session-Id $uid_set+$uid_got;
  35. proxy_set_header Upgrade $http_upgrade;
  36. proxy_set_header Connection $connection_upgrade;
  37. proxy_buffering off;
  38.  
  39. proxy_read_timeout 86400;
  40.  
  41. keepalive_timeout 90;
  42.  
  43. access_log /var/log/nginx/webservice.access.log;
  44. error_log /var/log/nginx/webservice.error.log;
  45.  
  46. rewrite /web-service/(.*) /$1 break;
  47.  
  48. proxy_cache off;
  49. }
  50.  
  51. Connection:upgrade
  52. Date:Fri, 08 Nov 2013 11:49:25 GMT
  53. Sec-WebSocket-Accept:LGB+iEBb8Ql9zYfqNfuuXzdzjgg=
  54. Server:nginx/1.4.2
  55. Upgrade:websocket
  56.  
  57. Connection:Upgrade
  58. Sec-WebSocket-Accept:8nwPpvg+4wKMOyQBEvxWXutd8YY=
  59. Upgrade:websocket
  60.  
  61. debug - served static content /socket.io.js
  62. debug - client authorized
  63. info - handshake authorized iaej2VQlsbLFIhachyb1
  64. debug - setting request GET /socket.io/1/websocket/iaej2VQlsbLFIhachyb1
  65. debug - set heartbeat interval for client iaej2VQlsbLFIhachyb1
  66. debug - client authorized for
  67. debug - websocket writing 1::
  68. debug - websocket writing 5:::{"name":"message","args":[{"message":"welcome to the chat"}]}
  69. debug - clearing poll timeout
  70. debug - jsonppolling writing io.j[0]("8::");
  71. debug - set close timeout for client 7My3F4CuvZC0I4Olhybz
  72. debug - jsonppolling closed due to exceeded duration
  73. debug - clearing poll timeout
  74. debug - jsonppolling writing io.j[0]("8::");
  75. debug - set close timeout for client AkCYl0nWNZAHeyUihyb0
  76. debug - jsonppolling closed due to exceeded duration
  77. debug - setting request GET /socket.io/1/xhr-polling/iaej2VQlsbLFIhachyb1?t=1383911206158
  78. debug - setting poll timeout
  79. debug - discarding transport
  80. debug - cleared heartbeat interval for client iaej2VQlsbLFIhachyb1
  81. debug - setting request GET /socket.io/1/jsonp-polling/iaej2VQlsbLFIhachyb1?t=1383911216160&i=0
  82. debug - setting poll timeout
  83. debug - discarding transport
  84. debug - clearing poll timeout
  85. debug - clearing poll timeout
  86. debug - jsonppolling writing io.j[0]("8::");
  87. debug - set close timeout for client iaej2VQlsbLFIhachyb1
  88. debug - jsonppolling closed due to exceeded duration
  89. debug - setting request GET /socket.io/1/jsonp-polling/iaej2VQlsbLFIhachyb1?t=1383911236429&i=0
  90. debug - setting poll timeout
  91. debug - discarding transport
  92. debug - cleared close timeout for client iaej2VQlsbLFIhachyb1
  93.  
  94. location /socket.io/ {
  95. proxy_pass http://node;
  96. proxy_http_version 1.1;
  97. proxy_set_header Upgrade $http_upgrade;
  98. proxy_set_header Connection "upgrade";
  99. proxy_set_header Host $host;
  100. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement