upstream, aws elb and resolver

Danilo Moret danilo.moret at
Wed Sep 23 20:05:49 UTC 2015

Hello everyone.

I'm trying to setup an Nginx proxy on AWS EC2 with the following general
layout: > ELB > EC2 Nginx > App's Beanstalk ELB

My first configuration was something like this:

http {
  upstream app {
    server weight 5;
    server weight 1;

  server {
    listen 80;

    location / {
      proxy_pass http://app;

But it stopped working twice so far at around the same time after about one
or two days. After reading more about that setup I found some suggestions
about what could be going on:,255961,255961#msg-255961

Is it still necessary to use variables to force Nginx to resolve? If yes,
to use upstream should I set the servers as variables or adding
$request_uri will do the trick?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list