From 6b3cd17202adba037782021faa3a2e0e058678c5 Mon Sep 17 00:00:00 2001 From: Anton Reutov Date: Wed, 28 Jul 2021 11:22:31 +0300 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 516df08bf..b1a96f1ef 100755 --- a/src/deb/vesta/postinst +++ b/src/deb/vesta/postinst @@ -36,4 +36,14 @@ if [ -x /usr/local/vesta/upd/fix_dhcprenew.sh ]; then /usr/local/vesta/upd/fix_dhcprenew.sh 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 + exit 0