I have an Apache Server running on CentOS 8.2, whose sockets are managed by systemd socket activation. But I don't want it to listen on the default port 80, because I want to run a reverse proxy with Nginx at this port. Here's the current systemd socket configuration:
root@server6:~# systemctl status httpd.socket
● httpd.socket - Apache httpd Server Socket
Loaded: loaded (/usr/lib/systemd/system/httpd.socket; enabled; vendor preset: disabled)
Drop-In: /etc/systemd/system/httpd.socket.d
└─20-redir8016.conf, 30-listen8017ssl.conf, override.conf
Active: active (running) since Fri 2020-11-20 14:45:13 UTC; 1 weeks 0 days ago
Docs: man:httpd.socket(8)
Listen: [::]:80 (Stream)
[::]:8001 (Stream)
[::]:8002 (Stream)
[::]:8003 (Stream)
Tasks: 0 (limit: 820374)
Memory: 0B
CGroup: /system.slice/httpd.socket
As you can see, port 80 is enabled. This is by default. The other ports were added deliebrately. The manpage of httpd.socket(8)
only describes how to add another port, not how to remove the default ones. Port 80 is not configured in any configuration file in /etc/httpd
.
How can I deactivate port 80 here? Where is the default configuration stored?