[TriLUG] webalizer and Apache VirtualHosts AND log rotate
Turnpike Man
turnpike420 at yahoo.com
Wed May 5 11:50:53 EDT 2004
ah yes... guess I had good reason not to worry... thanks!
I've added a note about that to my webalizer notes in case someone else asks.
http://www.turnpike420.net/linux2/webalizer_virtualhost.txt
laters,
David M.
--- Ryan Wheaton <ryan.wheaton at comcast.net> wrote:
> On Wednesday, May 5, 2004, at 06:48 America/Denver, Turnpike Man wrote:
> > Speaking of LOG ROTATE: Will these individual access logs that are
> > setup for
> > these VirtualHosts rotate on their own?? It just occurred to me I
> > never paid
> > any attention to that over the last 12 months with my previous install
> > prior to
> > its crash.
>
> well, it depends. if you left your apache config pretty much to the
> defaults, and set up your virtual hosts according to that (and put each
> VH log in /var/log/httpd/) then you should be alright. check out
> /etc/logrotate.d/httpd
>
> here's mine:
>
> # cat /etc/logrotate.d/httpd
> /var/log/httpd/*log {
> missingok
> notifempty
> sharedscripts
> postrotate
> /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2>
> /dev/null || true
> endscript
> }
>
> hth,
>
> -r
__________________________________
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover
More information about the TriLUG
mailing list