Unable to host website with nginx
I am trying to serve a website (proxied with cloudflare) with nginx. every time i try to access the website via the ip i get
connection timed out, and every time i try it through cloudflare i get
Error 523 (Origin Server Unreachable). I have tried everything i can think of to fix it but nothing works. I do not have any firewall installed on the server (it is a almost-fresh install of CentOS stream 9), and only country blocking on cloudflare.
CentOS Stream 9
✓ Best Answer
CentOS Stream 9 ships with
firewalld enabled by default, you will need to add rules to allow port 80 and 443.
firewall-cmd --permanent --zone=public --add-port=80/tcp firewall-cmd --permanent --zone=public --add-port=443/tcp firewall-cmd --reload