服务器 
首页 > 服务器 > 浏览文章

apache 配置成滚动日志的方法

(编辑:jimmy 日期: 2024/9/20 浏览:3 次 )
下面配置配置成每24小时产生1个新的日志文件:

#先搭建1个很简单网站进行访问
DocumentRoot E:/ApacheTestWeb

<Directory E:/ApacheTestWeb>
AllowOverride None
Allow from all
</Directory>

#修改如下配置:
CustomLog "|D:/Apache2.2/bin/rotatelogs.exe D:/Apache2.2/logs/access.log 86400" common
上一篇:Nginx防盗链的3种方法
下一篇:为Nginx自定义404,502错误页面的方法