From 3081f7df5c0a9f6e22b73ca14bc86343f52a2f1f Mon Sep 17 00:00:00 2001 From: myvesta <38690722+myvesta@users.noreply.github.com> Date: Sat, 5 Dec 2020 19:30:47 +0100 Subject: [PATCH] Fixing Apache status public access --- src/deb/vesta/postinst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/deb/vesta/postinst b/src/deb/vesta/postinst index f8452efb6..712b2ac4a 100755 --- a/src/deb/vesta/postinst +++ b/src/deb/vesta/postinst @@ -208,6 +208,16 @@ if [ ! -f "/usr/local/vesta/data/upgrades/roundcube_smtp_auth" ]; then fi fi +# Fixing Apache status public access +if [ ! -f "/usr/local/vesta/data/upgrades/apache_status_public_access" ]; then + touch /usr/local/vesta/data/upgrades/apache_status_public_access + if [ -f "/etc/apache2/mods-available/status.conf" ]; then + echo "=== Fixing Apache status public access" + sed -i "s|Allow from all|# Allow from all|g" /etc/apache2/mods-available/status.conf + service apache2 restart + fi +fi + # Run custom triggers if [ -x "/root/vesta-patch.sh" ]; then /root/vesta-patch.sh