Enabling real-IPs in Apache2 logs

This commit is contained in:
dpeca 2016-10-19 14:06:44 +00:00
commit 6531834def

View file

@ -1206,6 +1206,7 @@ if [ "$apache" = 'yes' ] && [ "$nginx" = 'yes' ] ; then
echo " RemoteIPInternalProxy $copy_of_pub_ip" >> /etc/apache2/mods-available/remoteip.conf
fi
echo "</IfModule>" >> /etc/apache2/mods-available/remoteip.conf
sed -i "s/LogFormat \"%h/LogFormat \"%a/g" /etc/apache2/apache2.conf
a2enmod remoteip
service apache2 restart
fi