来源: 最后更新:22-12-05 09:07:14
Linux系统配置方法:
将其改为
代码如下 | |
ErrorLog “| /usr/local/apache/bin/rotatelogs /home/logs/www/%Y_%m_%d_error_log 86400 480″ CustomLog “| /usr/local/apache/bin/rotatelogs /home/logs/www/%Y_%m_%d_access_log 86400 480″ common |
## 这是httpd.conf中的log日志代码:
代码如下 | |
#ErrorLog "logs/error_log" ErrorLog "|/usr/local/cronolog/sbin/cronolog /usr/local/apache-2.2.15/logs/error_log_%Y%m%d" LogLevel warn <IfModule log_config_module> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined LogFormat "%h %l %u %t \"%r\" %>s %b" common <IfModule logio_module> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio </IfModule> CustomLog "|/usr/local/cronolog/sbin/cronolog /usr/local/apache-2.2.15/logs/access_log_%Y%m%d" combined CustomLog "|/usr/local/cronolog/sbin/cronolog /usr/local/apache-2.2.15/logs/referer_log" Referer CustomLog "|/usr/local/cronolog/sbin/cronolog /usr/local/apache-2.2.15/logs/agent_log" Agent #CustomLog "logs/access_log" combined </IfModule> |
Windows系统下配置方法:
代码如下 | |
ErrorLog “|bin/rotatelogs.exe logs/site1/error-%y%m%d.log 86400 480″ CustomLog “|bin/rotatelogs.exe logs/site1/access-%y%m%d.log 86400 480″ common |
具体访问日志例子
代码如下 | |
<VirtualHost 192.168.1.3:588> CustomLog "|bin/rotatelogs.exe logs/vicp_net_access-%y%m%d.log 86400 480" common RewriteEngine On </VirtualHost> |
标签: VirtualHost arcID IfModule
帮同学化妆最高日入近千 帮朋友化妆帮同学化妆最高日入近千?浙江大二女生冲上热搜,彩妆,妆容,模特,王
2023吉林省紧缺急需职业工种目录政策解读 2024张杰上海演唱会启东直通车专线时间+票价 马龙谢幕,孙颖莎显示统治力,林诗栋紧追王楚钦,国乒新奥运周期竞争已启动 全世界都被吓了一跳(惊吓全世界)