Browse Source

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

dpeca 9 years ago
parent
commit
d95f0010b8
1 changed files with 2 additions and 0 deletions
  1. 2 0
      upd/switch_rpath.sh

+ 2 - 0
upd/switch_rpath.sh

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