# Nginx proxy\_pass ssl nodejs socketio error

**URL:** <https://www.ruby-forum.com/t/nginx-proxy-pass-ssl-nodejs-socketio-error/244235>\
**Category:** NGINX\
**Created:** [March 9, 2016, 7:39am UTC](https://www.ruby-forum.com/t/nginx-proxy-pass-ssl-nodejs-socketio-error/244235 "2016-03-09T07:39:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sadaf\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/858c86/32.png) [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Post date:** [March 9, 2016, 7:39am UTC](https://www.ruby-forum.com/t/nginx-proxy-pass-ssl-nodejs-socketio-error/244235/1 "2016-03-09T07:39:40Z")

</div>

I am trying to track down what is going on but an not having any  
success. I  
am using nginx as a proxy for ssl in front of my nodejs app. The http  
api  
works fine. I have the websocket on a separate subdomain. I connects  
sometimes but I have a ton of these messages in the error\_log:

upstream prematurely closed connection while reading response header  
from  
upstream

Here is my current config:

> <https://gist.github.com/codedmart/7182a10da31fcaa5143c>

Any help or ideas on what to look for would be great.

Thanks!

Posted at Nginx Forum:

> **[Nginx proxy\_pass ssl nodejs socketio error](https://forum.nginx.org/read.php?2,265176,265176#msg-265176)**
>
> I am trying to track down what is going on but an not having any success. I am using nginx as a proxy for ssl in front of my nodejs app. The http api works fine. I have the websocket on a separate subdomain. I connects sometimes but I have a ton of...
