Skip to content

Commit d95f001

Browse files
authored
Enabling real-IPs in Apache2 logs in /upd/switch_rpath.sh
1 parent e8632cc commit d95f001

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

upd/switch_rpath.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ for ip in $(ls /usr/local/vesta/data/ips); do
2727
done
2828
echo "</IfModule>" >> $conf
2929

30+
sed -i "s/LogFormat \"%h/LogFormat \"%a/g" /etc/apache2/apache2.conf
31+
3032
# Restarting apache
3133
/usr/sbin/apachectl restart > /dev/null 2>&1
3234

0 commit comments

Comments
 (0)