<br><br><div class="gmail_quote">On Tue, Mar 5, 2013 at 1:20 AM, trm asn <span dir="ltr"><<a href="mailto:trm.nagios@gmail.com" target="_blank">trm.nagios@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi List,<div><br></div><div>I am using Nginx-1.3.13 for this websocket support. I am doing <a href="http://socket.io" target="_blank">socket.io</a> proxy from Nginx . Below is my nginx.conf for websocket .</div><div><br></div>
<div><br></div>
<div><div>http {</div><div> include /etc/nginx/mime.types;</div><div> default_type application/octet-stream;</div><div><br></div><div>map $http_upgrade $conn_header {</div><div> default upgrade;</div>
<div> '' '';</div><div>}</div></div><div><br></div><div><div>server {</div><div> listen 80;</div><div> server_name _</div><div> access_log /var/log/nginx/access.log mylog;</div>
<div> error_log /var/log/nginx/error.log;</div><div> root /var/www/nginx;</div><div><br></div><div> location /nodeapp {</div><div> proxy_set_header X-Real-IP $remote_addr;</div>
<div> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;</div><div> proxy_redirect off;</div><div> proxy_pass <a href="http://10.164.110.11:8888" target="_blank">http://10.164.110.11:8888</a>;</div>
<div> proxy_http_version 1.1;</div><div> proxy_set_header Upgrade $http_upgrade;</div><div> proxy_set_header Connection $conn_header;</div><div> proxy_read_timeout 120s;</div>
<div> proxy_set_header Host $host;</div><div> }</div></div><div>}</div><div><br></div><div>my-node logs ...</div><div><br></div><div><div>debug: got heartbeat packet</div><div>debug: cleared heartbeat timeout for client tZhwv5ng-YYkTREOHsh4</div>
<div>debug: set heartbeat interval for client tZhwv5ng-YYkTREOHsh4</div><div>info: stats: "stats key"</div><div>info: stats: "Sent gauge sessions.count with value 9"</div><div>info: stats: "stats key"</div>
<div>info: stats: "Sent gauge users.registered with value 3"</div><div>info: stats: "stats key"</div><div>info: stats: "Sent gauge sessions.unique with value 3"</div><div>info: transport end (socket end)</div>
</div><div><br></div><div><br></div><div><br></div><div>But if configure Nginx on SSL mode then it's upgrading to websocket ( 101 ) .</div><div><br></div><div><div>debug: client authorized</div><div>info: handshake authorized jthZZKLA1fR1eaHTHsih</div>
<div>debug: setting request GET /nodeapp/<a href="http://socket.io/1/websocket/jthZZKLA1fR1eaHTHsih" target="_blank">socket.io/1/websocket/jthZZKLA1fR1eaHTHsih</a></div><div>debug: set heartbeat interval for client jthZZKLA1fR1eaHTHsih</div>
<div>debug: client authorized for </div><div>debug: websocket writing 1::</div><div>info: : "Session started for accessId: HbIzkBis5MYB9I7X"</div><div>debug: websocket writing 5:::{"name":"session-marked-as-alive"}</div>
</div><div><br></div><div>--Thanks,</div><div>Tarak</div>
</blockquote></div><br>Does anybody has faced this issue with 1.3.13 & <a href="http://socket.io">socket.io</a> .<br>