Просмотр исходного кода

Installer: Apply acces restrictions to 'hestia-status' instead of 'status' module

Robert Zollner 5 лет назад
Родитель
Сommit
4271cfed96
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      install/hst-install-debian.sh
  2. 1 1
      install/hst-install-ubuntu.sh

+ 1 - 1
install/hst-install-debian.sh

@@ -1236,7 +1236,7 @@ if [ "$apache" = 'yes' ]; then
     chmod 751 /var/log/apache2/domains
 
     # Prevent remote access to server-status page
-    sed -i '/Allow from all/d' /etc/apache2/mods-enabled/status.conf
+    sed -i '/Allow from all/d' /etc/apache2/mods-available/hestia-status.conf
 
     update-rc.d apache2 defaults > /dev/null 2>&1
     systemctl start apache2 >> $LOG

+ 1 - 1
install/hst-install-ubuntu.sh

@@ -1225,7 +1225,7 @@ if [ "$apache" = 'yes' ]; then
     chmod 751 /var/log/apache2/domains
 
     # Prevent remote access to server-status page
-    sed -i '/Allow from all/d' /etc/apache2/mods-enabled/status.conf
+    sed -i '/Allow from all/d' /etc/apache2/mods-available/hestia-status.conf
 
     update-rc.d apache2 defaults > /dev/null 2>&1
     systemctl start apache2 >> $LOG