mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
Enabling real-IPs in Apache2 logs
This commit is contained in:
parent
902a7c975a
commit
6531834def
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue