mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
Fixing Apache status public access
This commit is contained in:
parent
4b02876ca4
commit
3081f7df5c
1 changed files with 10 additions and 0 deletions
|
@ -208,6 +208,16 @@ if [ ! -f "/usr/local/vesta/data/upgrades/roundcube_smtp_auth" ]; then
|
||||||
fi
|
fi
|
||||||
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
|
# Run custom triggers
|
||||||
if [ -x "/root/vesta-patch.sh" ]; then
|
if [ -x "/root/vesta-patch.sh" ]; then
|
||||||
/root/vesta-patch.sh
|
/root/vesta-patch.sh
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue