Error refused to connect

Hi
I get the following error when typing an IP address or domain. Thank you for your help.

refused to connect.

Probably means something is going on with Nginx. You can check it by running systemctl status nginx-osp

‚óŹ nginx-osp.service - The NGINX HTTP and reverse proxy server
Loaded: loaded (/etc/systemd/system/nginx-osp.service; enabled; vendor preset
Active: failed (Result: exit-code) since Wed 2021-04-14 06:41:16 BST; 12h ago
Process: 55727 ExecStart=/usr/local/nginx/sbin/nginx (code=exited, status=1/FA

Yep. Showing offline. Start the service and see if it comes back up.

Welcome to nginx!

If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

For online documentation and support please refer to nginx.org.
Commercial support is available at nginx.com.

Thank you for using nginx.

Looks like maybe the correct nginx service files were not installed. I would run the installer again so that the system can put the files in the correct location.

I completely removed it once and reinstalled it. But it still gives the error refused to connect.