Apache2 Access Logs

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
Todd_Z
Forum Regular
Posts: 708
Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan

Apache2 Access Logs

Post by Todd_Z »

Does anyone know how to use the date in the access log name? Basically I want an access file for every day... is this possible?
User avatar
shoebappa
Forum Contributor
Posts: 158
Joined: Mon Jul 11, 2005 9:14 pm
Location: Norfolk, VA

Post by shoebappa »

http://httpd.apache.org/docs/2.0/progra ... elogs.html

There was a bug in this until 2.0.55...
User avatar
Todd_Z
Forum Regular
Posts: 708
Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan

Post by Todd_Z »

Code: Select all

CustomLog "|/usr/local/sbin/rotatelogs /var/log/www/sub.domain.com:80-%Y-%m-%d 86400" combined
Thanks for the help.
Post Reply