Question
How can I use the new feature in Plesk 18.0.56 that allows Apache Web Server to listen on localhost on ports 7080 and 7081?
Answer
In Plesk 18.0.56, we introduced a new feature (PPP-43250) that allows Apache Web Server to listen on localhost on ports 7080 and 7081. This feature was introduced as a security improvement to reduce the attack surface by ensuring that Apache is no longer publicly accessible on these ports, thereby enhancing the overall security of your server.
Description of the new CLI command
The new CLI command plesk bin apache --listen-on-localhost <true|false>
can be used to turn on/off Apache localhost mode.
Default behavior for new Plesk installations
For fresh Plesk installations, the localhost mode is turned on by default.
Behavior for Plesk upgrades
For Plesk upgrades, the localhost mode is turned off by default.
Notice about custom hosting templates
Existing custom hosting templates may not work in localhost mode depending on modifications made in the template and should be adjusted accordingly.