Listen on Port 80 Not Added in Apache2 ports.conf File on Update
Summary
"Listen 80" is not added to ports.conf file on ispconfig_update.sh even if sites/vhosts exist that are configured for access on port 80
Steps to reproduce
- Remove lines containing "Listen 80" and "Listen 443" in /etc/apache2/ports.conf
- Run ispconfig_update.sh
- Check port.conf and only Listen 443 exists, even if sites/vhosts exist configured for port 80 access
Correct behaviour
Also add Listen 80 line, or perhaps make this entirely optional (enabled by default, but maybe a setting that can be changed or custom-conf file that if exists would make the updater skip/not do this)? To be honest, I have Apache2 only listening on specific IP addresses, but the updater adds this/these lines, so Apache2 fails to restart after update, until I remove these Listen lines, should they exist, and restart the service.
Environment
Server OS + version: Ubuntu 20.04 ISPConfig version: 3.2.5 Software version of the related software: Server version: Apache/2.4.48 (Ubuntu) Server built: 2021-06-08T07:06:51
Proposed fix
Hopefully add option in Web tab of Server Config section of control panel to enable/disable adding these lines when reconfiguring (apache) services. If this option is enabled/not disabled, then also add the Listen 80 line if sites exist that are configured to be accessible on port 80