I can't access my blog by IP address

Posted June 17, 2020 1.6k views

I tried install a Ghost CMS on a droplet, actually the installation looks like okay in terminal, but I can’t access my site to see it… I think the DNS is not propagated yet since It will complete 48hours today later. But I can’t access the blog using the ip address. Instead it returns to me “ERRCONNECTIONREFUSED”
What could I have done wrong?

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

Hey @arnsoares ,

There are a lot of possible reasons why this could be happening. I would start with the following:

  • Check the Nginx logs - tail -n 20 /var/log/nginx/error.log
  • Check my php version - php -v
  • Check my Nginx config and check if the PHP lines are accordingly set up to my version (php7.2-fpm.sock/php7.3-fpm.sock/e.t.c)
  • Check my Nginx config and make sure there are no other virtual blocks that are interfering with the one I’m trying to access.
  • Check if my permissions and ownership are properly set.
  • Ping my domain and make sure the IP I’m getting is the same as the one of the Droplet, I’m trying to set up.

I hope this helps and feel free to keep the conversation going!

Best regards,

I tried a lot of things including destroying the droplet and creating another. I discovered that the problem was in the let’s encrypt configuration. So now, I think this is working and I am able to access the site.

But I am having another problem. I am having bad gateway when access my site using ‘www’ so. I can run this using just
But not when I try

I am using an A record to “” directing to the IP Address “” and two CNAME’s “” and “” with value of “”

I add in the nginx configuration
“sudo nano /etc/nginx/sites-available/default”

In ghost config url I added the: