Question

I can't access my blog by IP address

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 “ERR_CONNECTION_REFUSED” What could I have done wrong? www.selvabim.com.br


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.

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 https://selvabim.com.br But not when I try https://www.selvabim.com.br

I am using an A record to “selvabim.com.br” directing to the IP Address “68.183.125.93” and two CNAME’s “www.selvabim.com.br” and “www.selvabim.com.br.selvabim.com.br” with value of “selvabim.com.br

I add in the nginx configuration “sudo nano /etc/nginx/sites-available/default” server_name www.selvabim.com.br selvabim.com.br;

In ghost config url I added the: https://selvabim.com.br