Cannot see default Nginx landing page on droplet

Posted February 9, 2020 2.6k views

I am trying to do a simple nginx setup on my DO droplet.

Following this tutorial :

However after the installation when i check for running status using systemctl status nginx I get no issues:

However, when i try to access the server using browser http://ip_address i get no default nginx landing page(as mentioned in the post). I only see cannot GET \ and 404 not found in network window.

What could be the issue here?

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.

Submit an Answer
2 answers

Hi sir,maybe you can try this command

apt -y install nginx



And your screenshot URL is wrong,the proper one is this.
You forgot to add a : in it.

  • And here is another way to install nginx

    tar -zxvf nginx-1.13.6.tar.gz
    #go into the folder
    cd nginx-1.13.6
    ./configure --prefix=/usr/local/nginx 
    sudo make install
    sudo /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf
    Note: -c specifies the path of the configuration file. If not, nginx will automatically load the configuration file of the default path. You can view the help command with -h.
    ps -ef | grep nginx


    sudo ln -s /usr/local/nginx/sbin/nginx /usr/bin/nginx
  • And,if your server report an error,please use apt -y remove nginx and repeat the steps above.

  • No this doesn’t work. Still getting the same issue.

    • A new way I answered is being the DigitalOcean team’s review,please wait.Or you can commit a work-ticket to look for help.Maybe someone in stackoverflow have a similar problem and they have experience.

We had the issue, that we used the DO firewall and needed to add a rule “HTTP” on both inbound and outbound - after adding HTTP rules it worked.
Before we also forgot through using Putty to select our new username instead of root via Putty>Connection>Data>Auto-login name. That got us some errors.