Enabling real-IPs in Apache2 logs in /upd/switch_rpath.sh

This commit is contained in:
dpeca 2016-10-31 16:59:18 +01:00 committed by GitHub
parent e8632ccd48
commit d95f0010b8

View file

@ -27,6 +27,8 @@ for ip in $(ls /usr/local/vesta/data/ips); do
done done
echo "</IfModule>" >> $conf echo "</IfModule>" >> $conf
sed -i "s/LogFormat \"%h/LogFormat \"%a/g" /etc/apache2/apache2.conf
# Restarting apache # Restarting apache
/usr/sbin/apachectl restart > /dev/null 2>&1 /usr/sbin/apachectl restart > /dev/null 2>&1