nginx is still showing splash page after configuration

Viewed 29

I have a website, mywebsite.io

And this file /etc/nginx/conf.d/mywebsite.io.conf

server { 
        listen          80;
        listen          [::]:80;
        server_name     mywebsite.io;


        location / {
                proxy_pass http://localhost:4000/;
        }
}

But when I visit my site I see the nginx splash page. Any clue why? From what I have seen online this is right.

1 Answers

Did you remove the default.conf from the conf.d dir? Because this contains the default server - also listening on port 80.

If you access your website using the server_name that you have specified it should work fine, but if you are just sending a get to port 80 you could see the default.

Related