When going to my server in the browser, it shows the CentOS welcome page instead of nginx. How can I fix that?

I am running CentOS 7 on a droplet that I’ll be using as a web server. When I go to http://my_server_ip, it displays the “Welcome to CentOS” page.

I’ve followed the instructions to install, start, and enable nginx, but I still see the CentOS (not the nginx) welcome page.

Instructions from DO on installing nginx that I followed:

I also found that even when I turn off nginx, I still am able to get to that webpage, so it leads me to believe that this is interfering somehow.

I’ve also run the command “sudo netstat -tulpn” with the following result, but I don’t see anything listening on port 80, so I’m a bit confused:

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0  *               LISTEN      1038/master         
tcp        0      0   *               LISTEN      1/systemd           
tcp        0      0    *               LISTEN      27452/sshd          
tcp6       0      0 ::1:25                  :::*                    LISTEN      1038/master         
tcp6       0      0 :::111                  :::*                    LISTEN      1/systemd           
tcp6       0      0 :::22                   :::*                    LISTEN      27452/sshd          
udp        0      0   *                           1/systemd           
udp        0      0 *                           10653/ntpd          
udp        0      0*                           10653/ntpd          
udp        0      0 *                           10653/ntpd          
udp        0      0   *                           10653/ntpd          
udp        0      0   *                           2643/rpcbind        
udp6       0      0 :::111                  :::*                                1/systemd           
udp6       0      0 fe80::585f:e3ff:fe7:123 :::*                                10653/ntpd          
udp6       0      0 ::1:123                 :::*                                10653/ntpd          
udp6       0      0 :::123                  :::*                                10653/ntpd          
udp6       0      0 :::698                  :::*                                2643/rpcbind 

How can I fix this?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
January 1, 2020
Accepted Answer


Based on the netstat output that you’ve provided, I don’t see Nginx running on your server.

I’ve noticed that you’ve shared the article on how to install Nginx on Debian 10. I would recommend following the steps from this guide here on how to install Nginx on CentOS 7 here:

Also, on another note, there are no services listening on port 80 you should not really see anything when visiting your IP address via HTTP. I could suggest two things:

  • Make sure that you are accessing the correct IP address
  • Make sure to clear the cache of your browser

Let me know how it goes!

Regards, Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel