From d95f0010b82be1ef9cdd125a3b31c3964119af50 Mon Sep 17 00:00:00 2001 From: dpeca Date: Mon, 31 Oct 2016 16:59:18 +0100 Subject: [PATCH] Enabling real-IPs in Apache2 logs in /upd/switch_rpath.sh --- upd/switch_rpath.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/upd/switch_rpath.sh b/upd/switch_rpath.sh index 98dd1bd7..3b082049 100755 --- a/upd/switch_rpath.sh +++ b/upd/switch_rpath.sh @@ -27,6 +27,8 @@ for ip in $(ls /usr/local/vesta/data/ips); do done echo "" >> $conf +sed -i "s/LogFormat \"%h/LogFormat \"%a/g" /etc/apache2/apache2.conf + # Restarting apache /usr/sbin/apachectl restart > /dev/null 2>&1