---
title: "apache http日志文件按天生成"
author: "上官车月"
date: "2014-06-18T20:10:13Z"
tags: []
categories: ["开源软件"]
slug: "apache-http"
draft: false
lastmod: "2014-06-18T20:10:13Z"
id: 2082310
url: "https://guomingjun.iteye.com/blog/2082310"
---

**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

**Windows系统下配置方法：**

#ErrorLog "|bin/rotatelogs.exe logs/vicp\_net\_error-%y%m%d.log 86400 480"  
#CustomLog "|bin/rotatelogs.exe logs/vicp\_net\_access-%y%m%d.log 86400 480" common

 

 

 

http://www.cnblogs.com/wenanry/archive/2011/02/12/1951888.html

 

配置方式来源以上地址。

 

注意点：window 下安装路径不能存在空格，否则无法识别。