Port 80 connection refused

I am trying to set up a webpage for my wife, my problem is basically when I run curl from my local machine (curl “Failed to connect to port 80: Connection refused”. I can successfully curl when I ssh into the machine and get my index page: curl <html> <head> <title>Coding Diva Test</title> </head>

<h1>Coding Diva test</h1>


After spending the entire weekend trying various things, I uninstalled and re-installed. I have now seen nearly every tutorial on youtube for this :-). And, without fail, they install nginx, pop their IP address into the browser, and get the friendly nginx page. I do not. I get “The site cannot be reached”.

Here is my netstat result: Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0* LISTEN 21712/nginx -g daem tcp 0 0* LISTEN 13009/sshd
tcp6 0 0 :::80 :::* LISTEN 21712/nginx -g daem tcp6 0 0 :::22 :::* LISTEN 13009/sshd

Can someone suggest what step i have missed? Thanks! Joe

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.

Hello ,

If the domain is pointing to correct IP address then I can see that the port 80 is not open on your Droplet.

This is from my practice droplet

root@Docker-practice:~# nmap

Starting Nmap 7.01 ( ) at 2017-11-06 04:41 UTC Nmap scan report for ( Host is up (0.068s latency). Not shown: 999 closed ports PORT STATE SERVICE 22/tcp open ssh

Nmap done: 1 IP address (1 host up) scanned in 2.33 seconds

Are you using any firewall settings on droplet or externally.

Also can you show the nginx.conf and the vhost entry for the domain