安裝Cronolog:
- wget http://cronolog.org/download/cronolog-1.6.2.tar.gz
- gzip -d cronolog-1.6.2.tar.gz
- tar xf cronolog-1.6.2.tar
- cd cronolog-1.6.2
- ls
- ./configure
- make
- make install
- which cronolog
CustomLog "| /usr/local/sbin/cronolog /[PATH_TO_YOUR_LOG]/access-%Y%m%d.log" combined
<VirtualHost *:80>
ServerName ......
DocumentRoot ......
<Directory /Users/cateyes/work/sites/>
......
</Directory>
CustomLog "| /usr/local/sbin/cronolog /[PATH_TO_YOUR_LOG]/access-%Y%m%d.log" combined
</VirtualHost>
沒有留言:
張貼留言