Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Dec 2001 22:16:18 +0000
From:      Nuno Teixeira <nuno.mailinglists@pt-quorum.com>
To:        Christopher Elkins <christopherelkins@yahoo.com>
Cc:        Leo De Geer <leo@ktv.se>, freebsd-stable@freebsd.org
Subject:   Re: problem with apache log
Message-ID:  <20011202221618.GB438@gw.tex.bogus>
In-Reply-To: <20011201185253.A65582@tlon.lan.scardini.com>
References:  <!~!UENERkVCMDkAAQACAAAAAAAAAAAAAAAAABgAAAAAAAAASrpIvj67bUafx/CGzD1RPMKAAAAQAAAAOrglsMqqP0+0pkg6d2X6DQEAAAAA@ktv.se> <20011201185253.A65582@tlon.lan.scardini.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Sat, Dec 01, 2001 at 06:52:53PM -0800, Christopher Elkins wrote:
: On Sat, Dec 01, 2001 at 09:00:31PM +0100, Leo De Geer wrote:
: > 
: >    Il get problem whit the access log every time the log turns over. I'm
: >    using the newsyslog.conf and the line fore the log is
: > 
: >    /var/log/httpd/httpd-access.log                 644  7     *    @T10
: >    Z
: > 
: >    after turn over I need to restart the apache to get it to log in the
: >    new file
: 
: You need to add the file containing Apache's pid, i.e., something like the
: following:
:  
: /var/log/httpd/httpd-access.log       644  7     *    @T10 Z /var/run/httpd.pid
: 
: -- 
: Christopher Elkins
: 
: To Unsubscribe: send mail to majordomo@FreeBSD.org
: with "unsubscribe freebsd-stable" in the body of the message

  Hello,
  
  Apache logs are a litle exception to newsyslog. You can't compress this logs, 
  you need to do in newsyslog.conf something like:
  
  ...
  /var/log/apache/httpd-error.log    640  3   3000 *     B  /var/run/httpd.pid 30
  /var/log/apache/httpd-access.log   640  7   100000 *  B  /var/run/httpd.pid 30
  ...
  
  where 30 is a SIGHUP signal.
  
  You can read the full article at http://www.freebsddiary.org/rotatelogs.php
  
  Bye,
  
-- 
 Nuno Teixeira
 pt-quorum.com

 /* 
 PGP Public Key:
 http://www.pt-quorum.com/pgp/nunoteixeira.asc
 Key fingerprint:
 8C2C B364 D4DC 0C92 56F5  CE6F 8F07 720A 63A0 4FC7
 */

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20011202221618.GB438>