Life is simple Go someplace where you feel most like yourself.... Unknown things are beautiful....

Cronolog 在 Windows + Apache 下的安装

上一篇 / 下一篇  2007-12-28 20:56:40 / 个人分类:个人日志

BT站因为某位同学发了些敏感的内容,最近学校方面正在彻查,具说要查到所有已经下载该部片的学生才行!所以只有好好配合学校,上交相关资料,最后才发现,只能交出那个制作种子的同学。原因:服务器上apache日志功能未开~~ORZ
原来一直没有料想会用到这个功能吧!毕竟在内网(其实人还是多又杂)。无奈还是赶紧打开日志统计功能,今天上去发现,日志已经200多M了,只有一个文件。
不过Cronolog 可以为我们很好的解决这个问题了!
Cronolog 的官方站http://www.cronolog.org/,Download页面下就有Win 32 version截至目前版本是1.6.1
安装很简单,解压Cronolog到apache目录下(其它目录应该也OK的).
然后修改httpd.conf文件,在适当处加上:

CustomLog  “|D:/usr/apachelog/cronolog.exe D:/usr/apachelog/access/%Y%m%daccess.log” combined
ErrorLog  “|D:/usr/apachelog/cronolog.exe D:/usr/apachelog/error/%Y%m%derror.log”
可用相对路径,也可以像上面用绝对路径(所以猜想任何目录也OK的)!

或者在虚拟主机配置中使用
<VirtualHost *:80>
ServerName www.58tl.com
CustomLog “|D:/usr/apachelog/cronolog.exe D:/usr/apachelog/access/%Y%m%daccess.log” combined
ErrorLog “|D:/usr/apachelog/cronolog.exe D:/usr/apachelog/error/%Y%m%derror.log”
</VirtualHost>
好了,重新启动 Apache吧~马上就可以看到日志生成了“20071228access.log”


TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

Open Toolbar