如何在apache不停止的情况下,清空日至文件?

环境为: xp+apache+php

还有一个小问题。一个星期下来日志有200多M如何设置让他小点,或不记日志。
---------------------------------------------------------------

建立多个日志:

生成一个标准的CLF访问文件和一个含有所有引用的URL信息的定制日志文件:
TransferLog logs/access_log
CustomLog logs/referer_log "%{Referer}i"
在主服务器配置中定义了 TransferLog 或 CustomLog,并且定义了一个虚拟主机,
与虚拟主机有关的日志记录也记录在这些日志里:
TransferLog logs/access_log
CustomLog logs/agents_log "%{User-agent}i"

 1<virtual 61.172.246.83="" host="">   
 2ServerName www.mistruster.com   
 3DocumentRoot /home/mai.cxc.cc/public_html   
 4ScriptAlies /cgi-bin/ /home/mai.cxc.cc/cgi-bin/   
 5   
 6上面虚拟主机 www.mistruster.com 的<virtual host...="">容器中没有定义TransferLog和CustomLog命令。   
 7所有的日志信息将存在log/access_log和logs/agentslog文件中。   
 8如果在<virtual host...="">容器中加入:   
 9TransferLog vhost_logs/Reboot_access_log   
10则虚拟主机 www.mistruster.com 的所有日志信息都将存在 vhost_logs/reboot_access_log 文件中</virtual></virtual></virtual>
Published At
Categories with Web编程
Tagged with
comments powered by Disqus