http://cronolog.org/

http://aa.shangdu.com/UNIX_html/site/fanqiang/www.fanqiang.com/a6/b1/20010421/174021_b.html



〈VirtualHost 192.168.11.8:82>

documentroot /www/web.company.com/developer/htdocs/

scriptalias /cgi-bin /www/web.company.com/developer/cgi-bin/

transferlog "|/usr/local/apache/bin/cronolog /usr/local/apache/logs/web/developer/%Y/%m/%d/access_log"

errorlog "|/usr/local/apache/bin/cronolog /usr/local/apache/logs/web/developer/%Y/%m/%d/error_log"

〈/VirtualHost>

注:上面是基端口的虛擬主機設置,要訪問測試服務器,用http://web.company.com:81/
開發服務器用http://web.company.com:82/
上面的transferlog and errorlog用了不是默認的格式,而是Apache網站上建議的這種每天
一個文件的年/月/日格式,可從http://www.ford-mason.co.uk/resources/cronolog/下載編譯
安裝在/usr/local/apache/bin/cronolog,可查看Apache網站獲得更多信息。
http://httpd.apache.org/docs/misc/FAQ.html#rotate
創作者介紹

創造心理的感動

gisanfu 發表在 痞客邦 PIXNET 留言(0) 人氣()