Skip to content

Commit 6531834

Browse files
committed
Enabling real-IPs in Apache2 logs
1 parent 902a7c9 commit 6531834

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

install/vst-install-debian.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,6 +1206,7 @@ if [ "$apache" = 'yes' ] && [ "$nginx" = 'yes' ] ; then
12061206
echo " RemoteIPInternalProxy $copy_of_pub_ip" >> /etc/apache2/mods-available/remoteip.conf
12071207
fi
12081208
echo "</IfModule>" >> /etc/apache2/mods-available/remoteip.conf
1209+
sed -i "s/LogFormat \"%h/LogFormat \"%a/g" /etc/apache2/apache2.conf
12091210
a2enmod remoteip
12101211
service apache2 restart
12111212
fi

0 commit comments

Comments
 (0)