Ask A Question


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

I have followed the 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
Join the discussion
Create an account Log in

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

Join 81,149+ 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.

    © 2024 GoRails, LLC. All rights reserved.