Welcome! Log In Create A New Profile


upstream, aws elb and resolver

Danilo Moret
September 23, 2015 04:06PM
Hello everyone.

I'm trying to setup an Nginx proxy on AWS EC2 with the following general

mydomain.com > ELB > EC2 Nginx > App's Beanstalk ELB

My first configuration was something like this:

http {
upstream app {
server current-app.elasticbeanstalk.com weight 5;
server new-app.elasticbeanstalk.com 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:


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?

nginx mailing list
Subject Author Posted

upstream, aws elb and resolver

Danilo Moret September 23, 2015 04:06PM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 74
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready