Skip to content

Commit 56bc511

Browse files
authored
Fix Apache Access / Awstats logs IP (hestiacp#2759)
* Fix Apache Access / Awstats logs IP Fix Apache Access / Awstats logs IP * Update v-update-sys-ip
1 parent 352d0b3 commit 56bc511

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

bin/v-update-sys-ip

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@ if [ ! -z "$new" ]; then
7272
sed -i "s/$old/$new/g" $HESTIA/data/users/$user/web.conf
7373
$BIN/v-rebuild-web-domains "$user" no
7474
done
75+
76+
if [ -e "/etc/apache2/mods-available/remoteip.conf" ]; then
77+
sed -i "s/$old/$new/g" /etc/apache2/mods-available/remoteip.conf
78+
fi
79+
80+
if [ -e "/etc/apache2/mods-enabled/rpaf.conf" ]; then
81+
sed -i "s/$old/$new/g" /etc/apache2/mods-enabled/rpaf.conf
82+
fi
83+
7584
$BIN/v-restart-proxy
7685
$BIN/v-restart-web
7786
fi

0 commit comments

Comments
 (0)