测试环境:

easyphp1.8

 

apache配置文件:
conf/httpd.conf

 

找到行:

CustomLog logs/access.log common

 

替换行:

#
# 图片,flash,css,js等内容将不记录日志

#

<FilesMatch "\.(ico|gif|jpg|swf|png|css|js)">
SetEnv IMAG 1
</FilesMatch>
CustomLog logs/access.log combined env=!IMAG

 

学习更多阅读:
http://hi.baidu.com/baijy/blog/item/ed9e92ec7fad443e26979108.html

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-18
  • 2022-12-23
  • 2022-12-23
  • 2021-09-10
  • 2021-08-21
猜你喜欢
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2021-04-10
  • 2022-01-31
  • 2022-12-23
相关资源
相似解决方案