Fedora 33 with Nginx - This site can't be reached

I am a long time user of Digital Ocean, I have managed multiple droplets regularly using CentOS or Ubuntu. So I decided today to use a Fedora 33 instance and install Nginx.

So I did everything as always, my domain is pointing to my droplet IP and it is added in the Network -> domains inside my Dashboard.

I installed Nginx with the dnf install command with version 1.18.0 and it’s running with the following status:

[root@vudbox-fed-sfo2 ~]# systemctl status nginx
● nginx.service - The nginx HTTP and reverse proxy server
     Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
     Active: active (running) since Tue 2020-12-15 18:55:16 CST; 24min ago
    Process: 827 ExecStartPre=/usr/bin/rm -f /run/ (code=exited, status=0/SUCCESS)
    Process: 828 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=0/SUCCESS)
    Process: 829 ExecStart=/usr/sbin/nginx (code=exited, status=0/SUCCESS)
   Main PID: 830 (nginx)
      Tasks: 2 (limit: 2333)
     Memory: 2.1M
        CPU: 55ms
     CGroup: /system.slice/nginx.service
             ├─830 nginx: master process /usr/sbin/nginx
             └─831 nginx: worker process

Then I tried to visualize the web server response to the IP of the Droplet, so I tried to navigate to it but it prompts “This site can’t be reached”.

What I have tried is?

  1. Checked the SELinux testing totally disabling it.
  2. Checked the owner of the directories and files.
  3. Checked if was there any firewall but there was none.
  4. Checked Nginx log files which were empty.

What I can do…

  1. I can ping or traceroute the domain name to the droplet IP
  2. I can curl inside the droplet and get the index.html content

So I ran out of ideas, I would really appreciate it if someone kind enough can help me to crack this issue.

Thank you very much in advance. Regards.

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi @JWBrownie,

Try to use a tool to see if your DNS is properly loading, It’s a longshot but better safe than sorry. You can use the following DNS Checker

Once you know it’s not DNS, can you please share your Nginx config to see if everything is correct.

And lastly, what the most probable issue is, is the firewall. Please make sure to allow connections on port 80 and 443 from the outside world.

Regards, KFSys