Question

How could my clients see the content serve by apache web server in my droplet? The port 80 is not open to internet?

Posted February 12, 2017 975 views
CentOSApache

How could my clients see the content serve by apache web server in my droplet? The port 80 is not open to internet?

A fierwall consideration…

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.

×
1 answer

If you have terminal access (and a sudo-enabled account) to your server then try typing the following to see if you have a firewall active and what ports are allowed:

sudo ufw show added

if port 80 is open you should see an entry like this:

ufw allow 80

If not then you need to open port 80 by using the following command:

sudo ufw allow http

I would add a few other ports too (for https and SSH)

sudo ufw allow ssh
sudo ufw allow 443/tcp

Hope that helps

Submit an Answer