Question

NGNIX Installation

Hi, I need help with my NGNIX installation on a DigitalOcean VPC. I can access the NGNIX welcome pages with curl, but not via browser from my laptop. I didn’t have a firewall config at DigitalOcean and UFW is configured like the tutorial. Please help.


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.

alexdo
Site Moderator
Site Moderator badge
November 8, 2024

Heya, @growcommunitychurch

Even if you don’t have a firewall explicitly configured for your droplet, DigitalOcean’s Cloud Firewall might have default settings that restrict access. You can check and adjust this in your DigitalOcean dashboard:

  1. Go to Networking > Firewalls in your DigitalOcean dashboard.
  2. If you see any firewall rules applied to your droplet, ensure they allow inbound traffic on TCP port 80.

Regards

KFSys
Site Moderator
Site Moderator badge
November 4, 2024

Heya,

Can you provide more info on the matter, when you open your website what error do you exactly get?

Additionally, the curl, what code does it return

Bobby Iliev
Site Moderator
Site Moderator badge
November 4, 2024

Hi there,

What is the exact error that you get when you try to access your IP address via your browser?

Sometimes browsers like Chrome, would automatically redirect to HTTPS, so if you don’t have an SSL installed, you will just get a connection refused in your browser.

Make sure that you visit your IP address via HTTP directly instead.

If this is indeed the case, you can also consider installing a free SSL certificate using Let’s Encrypt so that your site will also be accessible via HTTPS as well as HTTP:

https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04

Let me know how it goes!

- Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.