Failed to connect to port 443: Operation timed out

Hi guys,

I’m not sure why but currently my site is not accessible anymore,

Failed to connect to port 443: Operation timed out

It used to be working fine.

I’m not too sure what I did, or what happened, but these are the stuff that I was trying out before this happened.

  1. Followed the instructions on to optimise site.
  2. Update/upgrade ubuntu and rebooted.

I’ve checked the error logs but don’t see anything there. Did a sudo nginx -t and found no errors too. Not sure how else to find what is the error/problem causing this… =(


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.


There are a few things that you could do to gather some more information:

  • Check your Nginx error log:
tail -100 /var/log/nginx/error.log
  • Check if Nginx is actually listening on port 443:
netstat -plant | grep 443

If Nginx is not listening on port 443, then you need to check your server block and ensure that you’ve actually have an entry for port 443.

Regards, Bobby