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?
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.
The option value is stored in
Default behavior for new Plesk installations
For fresh Plesk installations, the localhost mode is turned on by default.
The option value in
psa.misc.apacheListenLocalhost is undefined and
webserver.apacheListenLocalhost provides the default value.
Behavior for Plesk upgrades
For Plesk upgrades, the localhost mode is turned off by default.
The option value
psa.misc.apacheListenLocalhost = false is stored explicitly during the upgrade.
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.