A question can only have one accepted answer. Are you sure you want to replace the current answer with this one?
You previously marked this answer as accepted. Are you sure you want to unaccept it?
I've changed my ufw settings to only allow port 22 for ssh and 443 for https.
If i go to https://mydomain.com it works fine but if i try to go to http://mydomain.com then it says server not found. I take it i have no choice BUT to enable port 80?
Add comments here to get more clarity or context around a question. To answer a question, use the “Answer” field below.
At minimum, you need ports 22, 80, and 443 open and accepting incoming requests. Ports 80 and 443 are web-facing ports that are required for HTTP and HTTPS requests to get through.
dang, alright. And if i want to receive emails then 25 will also need to be open. Anything else i've probably need?
You'll have to open any port which is to be used as an incoming port that a connection needs to be accepted on. If you need to accept connections on 25, you'll need to open it as well.
Keep in mind, if your account is rather new, DigitalOcean does place a block on 25, IIRC. So unless that block has been removed for your account, it won't matter if you open it on the Droplet, it'll be blocked at the network level so the connection will drop.
You'll have to get in touch with support to have the block removed.
You've been answering questions all day. Thank you very much!
No problem -- I try to help where I can :-).