1.modify /etc/apache2/apache2.conf
add lines in it
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" proxy
SetEnvIf X-Forwarded-For "^.*\..*\..*\..*" forwarded
CustomLog "logs/access_log" combined env=!forwarded
CustomLog "logs/access_log" proxy env=forwarded
2.restart apache2 server
#/etc/init.d/apache2 restart
沒有留言:
張貼留言