Ask A Question

Notifications

You’re not receiving notifications from this thread.

Still seeing the Welcome to nginx! screen after nginx configuration

Ben John Bagley asked in Servers
I have set up and deployed an application using Capistrano and set up the server and ngnix config file, however, I'm still seeing the `Welcome to ngnix` welcome screen.

Here is what I have in the `/etc/nginx/sites-enabled/default` file

server {
    listen 80;
    listen [::]:80 ipv6only=on;
    
    server_name IP;
    passenger_enabled on;
    rails_env    production;
    root         /home/poladmin/poetry-out-loud-v2/current/public/;
    
    # redirect server error pages to the static page /50x.html
    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   html;
    }
}

But as I said when I go to the server IP all I see is

https://i.gyazo.com/f925d16bdc933b8f90767be17cc46f2b.png

I have followed the https://gorails.com/deploy/ubuntu/16.04 tutorial, I am using puma locally and passenger in production, the app is successfully being deployed to the server but I'm not seeing it live.

P.S. I have ran sudo service nginx restart
Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 76,990+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

    © 2023 GoRails, LLC. All rights reserved.