Skip to content

Commit 4271cfe

Browse files
committed
Installer: Apply acces restrictions to 'hestia-status' instead of 'status' module
1 parent ca62198 commit 4271cfe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

install/hst-install-debian.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1236,7 +1236,7 @@ if [ "$apache" = 'yes' ]; then
12361236
chmod 751 /var/log/apache2/domains
12371237

12381238
# Prevent remote access to server-status page
1239-
sed -i '/Allow from all/d' /etc/apache2/mods-enabled/status.conf
1239+
sed -i '/Allow from all/d' /etc/apache2/mods-available/hestia-status.conf
12401240

12411241
update-rc.d apache2 defaults > /dev/null 2>&1
12421242
systemctl start apache2 >> $LOG

install/hst-install-ubuntu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,7 @@ if [ "$apache" = 'yes' ]; then
12251225
chmod 751 /var/log/apache2/domains
12261226

12271227
# Prevent remote access to server-status page
1228-
sed -i '/Allow from all/d' /etc/apache2/mods-enabled/status.conf
1228+
sed -i '/Allow from all/d' /etc/apache2/mods-available/hestia-status.conf
12291229

12301230
update-rc.d apache2 defaults > /dev/null 2>&1
12311231
systemctl start apache2 >> $LOG

0 commit comments

Comments
 (0)