Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

226
Views
Nginx does not route traffic to Node js server in AWS ElasticBeanstalk

Using ElasticBeanstalk to deploy an NodeJS web application. I have the Nginx config file like below:

events {}
http {
  server { # simple reverse-proxy
    listen       80;
    # pass requests for dynamic content
    location / {
      proxy_pass      http://localhost:5000;
    }
  }
}

I have the node server starting at port 5000.

I see the Nginx seems starting ok as well:

2021/08/25 16:16:28.573953 [INFO] Executing instruction: start proxy with new configuration
2021/08/25 16:16:28.573976 [INFO] Running command /bin/sh -c /usr/sbin/nginx -t -c /var/proxy/staging/nginx/nginx.conf
2021/08/25 16:16:28.678857 [INFO] Running command /bin/sh -c cp -rp /var/proxy/staging/nginx/* /etc/nginx
2021/08/25 16:16:28.698889 [INFO] Running command /bin/sh -c systemctl show -p PartOf nginx.service
2021/08/25 16:16:28.717393 [INFO] Running command /bin/sh -c systemctl daemon-reload
2021/08/25 16:16:28.824685 [INFO] Running command /bin/sh -c systemctl reset-failed
2021/08/25 16:16:28.829180 [INFO] Running command /bin/sh -c systemctl show -p PartOf nginx.service
2021/08/25 16:16:28.834724 [INFO] Running command /bin/sh -c systemctl is-active nginx.service
2021/08/25 16:16:28.838286 [INFO] Running command /bin/sh -c systemctl start nginx.service

But when I click the ElasticBeanstalk link, I see it goes to the default AWS Nginx page with title Welcome to nginx on Amazon Linux!

Did I miss anything in the config?

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!