Ive setup nginx for the first time on Ubuntu 20.4 following the guide https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-20-04 - in preparation for a wordpress install - but I cant get the server to respond to http requests - nginx status reports its active and running - and ufw status also reports port 80 is open - Ive reset the firewall using this guide https://www.digitalocean.com/community/questions/how-to-reset-the-firewall-on-ubuntu and attempted again to enable http but no joy - this port scanner tells me the port is closed https://www.ipvoid.com/port-scan/ which explains why no response for http requests but how to open it is my problem.
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!
Hi @greencomputing,
It’s possible you have the Nginx listening on another port rather than 80. What I’ll recommend is first identifying the port Ningx listens to. Open an SSH session to your droplet.
Once in, type in the following command
netstat -tulpen
It will show you all ports that are being used by a service. See if Nginx is actually listening to port 80 and 443. If it’s not you’ll need to change that. This can be changed from the default Nginx configuration file which should be available in /ec/nginx/.
Once you change the port, don’t forget to restart Nginx
service nginx restart
Regards, KFSys
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
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
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.