Hi everyone,
I’m using a web server with Hestia Control Panel v1.9.4 (nginx, php-fpm) on Ubuntu 22.
I needed to put Caddy in front of nginx (the reason doesn’t matter for now), and Caddy requires port 80 to function properly.
I thought this would be simple:
-
Find all
*.conffiles containing alistendirective, locate port 80, and change it to another port. -
I checked all files under
/etc/nginx/...and/home/admin/conf/...and found this file:
/home/admin/conf/web/domain.com/nginx.conf. It containedlisten 80, so I changed it and restarted nginx.
But nothing changed!
sudo ss -tulpn | grep -E ':(80)'
tcp LISTEN 0 511 0.0.0.0:80 0.0.0.0:* users:(("nginx",pid=2004701,fd=10),("nginx",pid=2003258,fd=10))
If I nginx stop, port 80 stops listening. If I start nginx, port 80 is listening again.
I’ve checked all included files and the entire filesystem for listen directives—nowhere else is port 80 defined!
How is this possible? I’m getting frustrated and decided to ask here.