Yes the answer is on the elastic load balancer you must use protocol TCP or SSL - not HTTP or HTTPS. The HTTP/HTTPS listeners keep the connections open for reuse........by dgobaud - Nginx Mailing List - English
I am having the same problem - I need to detect if the connection is using SSL or not. I used to use if ($http_x_forwarded_proto = "http") { return 301 https://$host$request_uri; } but now I switched to proxy_protocol and I'm not seeing a way to detect if SSL is being used. It seems there should be a $proxy_prototcol_proto and/or $proxy_prototcol_port variables but they don't seby dgobaud - How to...
Hi! Thanks for replying. It appears the issue might actually be on the AWS side. AWS is looking into it. Think its an issue with the elastic load balancer.by dgobaud - Nginx Mailing List - English
I also just tested regular http and it is having the same problem. dgobaud Wrote: ------------------------------------------------------- > Don't think so - config is below and the relevant url is > /dashboard_stream > > upstream my_app { > server unix:///var/run/puma/my_app.sock; > } > > server { > listen 80; >by dgobaud - Nginx Mailing List - English
Don't think so - config is below and the relevant url is /dashboard_stream upstream my_app { server unix:///var/run/puma/my_app.sock; } server { listen 80; server_name _ localhost; # need to listen to localhost for worker tier if ($http_x_forwarded_proto = "http") { return 301 https://$host$request_uri; } locationby dgobaud - Nginx Mailing List - English
Hi, I'm using AWS Beanstalk with nginx in front of a Puma server serving Ruby on Rails. I have one URL that is for an EventSource so it is kept alive and data is streamed out. I was running into this problem http://forum.nginx.org/read.php?2,237386,237386 where when the client closes the browser but nginx keeps the connection alive forever so I tried having nginx automatically close the connectionby dgobaud - Nginx Mailing List - English
Any update on this? Seeing this problem with nginx leaving connections open on AWS Beanstalk using nginx to proxy to puma/ruby on rails. nginx version: nginx/1.6.2 NAME="Amazon Linux AMI" VERSION="2015.03" ID="amzn" ID_LIKE="rhel fedora" VERSION_ID="2015.03" PRETTY_NAME="Amazon Linux AMI 2015.03" ANSI_COLOR="0;33" Cby dgobaud - Nginx Mailing List - English