apache - Sailsjs behind Apache2 proxy logging socket errors -


i following log lines each connection:

info: handshake authorized bqumvcf9ktcmvuoxcxg5  warn: websocket connection invalid info: transport end (undefined) 

and apache2 error log shows @ same time:

[sun apr 06 15:09:16 2014] [error] [client 24.84.162.51] (20014)internal error: proxy: error reading status line remote server localhost:7000 [sun apr 06 15:09:16 2014] [error] [client 24.84.162.51] proxy: error reading remote server returned /socket.io/1/websocket/bqumvcf9ktcmvuoxcxg5 

is there can in sails adjust socket.io behaviour? mean, pages loading, , things appear connecting up, unhappy, , i'm nervous when log files aren't silent. aren't you?

if you're not using socket.io wont notice issues other socket.io complaining can't connect.

however, proxying websocket can tricky. haven't ever done apache nginx 1.3 added support websockets. if it's helpful or others here nginx config proxy websocket

server {         listen 80;         server_name www.example.com;          location / {                 proxy_pass  http://myserver:8000/;                 proxy_http_version  1.1;                 proxy_redirect  off;                  proxy_set_header  x-real-ip $remote_addr;                 proxy_set_header  x-forwarded-for  $proxy_add_x_forwarded_for;                 proxy_set_header  host  $http_host;                 proxy_set_header  x-nginx-proxy  true;                 proxy_set_header  upgrade  $http_upgrade;                 proxy_set_header  connection  "upgrade";         } } 

Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -