lighttpd自定义日志格式
今天配置lighttpd自定义日志,发现lighttpd只会把所有域名日志都写到一起即/var/log/lighttpd/access_log
看了下文档发现没方法自定义,只能自定义日志里的格式,故google之,方法如下
#wget http://cronolog.org/download/cronolog-1.6.2.tar.gz
#tarzxvfcronolog-1.6.2.tar.gz
#cdcronolog-1.6.2
#./configure
#make
#makeinstall
#whichcronolog
/usr/local/sbin/cronolog最终文件如下样子
$HTTP["host"] =~ "^(www\.)?test1.com" { server.document-root = "/var/www/test1.com" accesslog.filename = "|/usr/local/sbin/cronolog /var/log/lighttpd/accesslog_%Y_%m_%d" }
相关推荐
OwenJi 2020-04-30
hygbuaa 2020-02-02
82463862 2011-09-13
boante 2008-07-17
httphttpcn 2007-06-27
87204950 2011-08-22
afterlake 2011-07-16
方正SOA中间件 2011-06-23
81204957 2011-06-20
85234850 2011-05-19
87447007 2011-03-10
89401052 2010-09-29
梦想启航 2010-06-14
kaiwangic 2010-04-01
afterlake 2009-12-25
bglmmz 2009-04-04
luyinlian 2011-09-23
MARQUIS 2012-08-13
87510793 2011-06-30