Question

Cannot see default Nginx landing page on droplet

Posted February 9, 2020 397 views
Nginx

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

Following this tutorial : https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-16-04

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

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.

×
2 answers

Hi sir,maybe you can try this command

apt -y install nginx

and

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

    #Download
    wget http://nginx.org/download/nginx-1.13.6.tar.gz
    #Unzip
    tar -zxvf nginx-1.13.6.tar.gz
    #go into the folder
    cd nginx-1.13.6
    #config
    ./configure --prefix=/usr/local/nginx 
    #program
    make
    #install
    sudo make install
    #start
    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.
    #watch
    ps -ef | grep nginx
    

    then

    sudo ln -s /usr/local/nginx/sbin/nginx /usr/bin/nginx
    
    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.

Submit an Answer