Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8811211
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:18:24+00:00 2026-06-14T03:18:24+00:00

i have installed nginx on my ubuntu ec2 instance and im building an app

  • 0

i have installed nginx on my ubuntu ec2 instance and im building an app using node.js, and when i go my amazon url i.e.

http://elastic.ip.address

it works fine, so its running the / file:

app.get('/', function(req, res) {
    return res.render('home');
  });

however when i try go to http://elastic.ip.address/page2:

    app.get('/page2', function(req, res) {
    return res.render('page2');

  });

I get the 500 internal server error, so i really don’t know whats happening, this works on my localhost without running nginx, but not my ec2.

this is my nginx configuration file layout:

server {
        listen   80;

        root /home/ubuntu/project/;



        server_name  static_ip.compute-1.amazonaws.com;


        location / {
                # First attempt to serve request as file, then
                # as directory, then fall back to index.html
                try_files $uri $uri/ /index.html;
                # Uncomment to enable naxsi on this location
                # include /etc/nginx/naxsi.rules
                proxy_pass      http://127.0.0.1:8124/;
        }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T03:18:26+00:00Added an answer on June 14, 2026 at 3:18 am

    A couple things to try:

    • Have a look at /var/log/nginx/error.log and see if you can get some better information about what’s going wrong.

    • Make sure that the user that nginx is running as has read permissions to /home/ubuntu/project/.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have tried this tutorial http://adrian.org.ar/python/django-nginx-green-unicorn-in-an-ubuntu-11-10-ec2-instance to setup django with ngnix and gunicorn.I have
I'm creating a simple chat app. Have installed nginx on Ubuntu 11.10, with PHP
I have my moodle setup using this guide ( Ubuntu 11.04 ) http://docs.moodle.org/dev/Install_Moodle_On_Ubuntu_with_Nginx/PHP-fpm I
I have installed nginx on Ubuntu 12.04. However, nginx does not seem to follow
I'm using Rackspace Cloud Servers. I have installed NGINX with PHP and Memcache. When
I have an ec2 instance running on amazon which has AMI(ami-1b814f72).Its running RedHat 4.4.4-13
I have installed both Apache and Meteor behind NginX through reverse-proxy (on an Ubuntu
I'm using Ubuntu 11.04 and Nginx. I want to install phpmyadmin and have access
I have nginx installed (was using it for Ruby on rails with passenger). What
I have installed Nginx 1.2.0 with Passenger on my Mac Mini running Lion Server.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.