Question

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

Posted December 16, 2020 1.4k views
NginxFedora

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/nginx.pid (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.

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
1 answer

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

  • Thank you KFSys,

    The DNS configuration is working fine, and I am sure that’s not it, I mean I am trying to get the default Nginx screen to show up by entering the droplet IP in the browser navigation bar, as simple as that and it is not working.

    Regards,