httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Wolski" <aaro...@martekbiz.com>
Subject RE: [users@httpd] access_logs not writing!
Date Wed, 24 Mar 2004 16:06:58 GMT
Hi Adam,

Well... it seems this have worked:

/home/*/logs/access_log {
monthly
missingok
rotate 1
postrotate
/usr/bin/killall -HUP httpd 2> /dev/null || true
endscript
compress
}

I have this in my /etc/logrotate.d/httpd file.

access_log does start rewriting without having to go graceful!

Thanks for the help on this.

Regards,

Aaron

> -----Original Message-----
> From: Adam Buglass [mailto:adam.buglass@ncl.ac.uk]
> Sent: March 24, 2004 10:40 AM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] access_logs not writing!
> 
> <snip>
> > http://httpd.apache.org/docs-2.0/logs.html#rotation
> >
> > You do need to restart apache (gracefully), but this shouldn't be a
> > problem.
> >
> > Also, you do know that writing logs to a directory owned by a
non-root
> > user is essentially equivalent to giving that user root, right?
> > See:
> > http://httpd.apache.org/docs-2.0/misc/security_tips.html#serverroot
> >
> > Joshua.
> >
> Best way to do it, use a shell script. Something like this:
> 
> /var/log/httpd/error {
>     missingok
>     postrotate
>         /usr/bin/killall -HUP httpd 2> /dev/null || true
>     endscript
> }
> 
> HTH
> Adam
> 
> 
> >
> >
---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server
> Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message