httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xiongfei Wang <wan...@arches.uga.edu>
Subject [users@httpd] how to rotate log files
Date Wed, 22 Jan 2003 13:44:52 GMT
I have redat 7.3 server with a apache web server running on it. i also
have several virtual host on it

the conf of one of them is:

------------------------------------------
############## VIRTUAL HOST IS APIDB-DEV ################
<VirtualHost 126.100.45.25>
        ServerName cryptodb-dev.ctegd.uga.edu
        ServerAdmin jkissing@uga.edu
        DocumentRoot "/var/www/crto-dev/html"
        ErrorLog /var/log/httpd/crto-dev/error_log
        CustomLog /var/log/httpd/crto-dev/access_log common
<Directory "/var/www/crto-dev/html">
Options Includes FollowSymLinks
AllowOverride Limit AuthConfig
Order allow,deny
Allow from all
</Directory>

</VirtualHost>
--------------------------------------------------

The log file will be in /var/log/httpd/crto-dev/access_log
because the access_log file is geting to big, i want to use following
stategy to do deal with it.
first week: all log info are written to access_log
second week: move access_log to access_log1, 
third weed: move access_log1 to access+log2. move access_log toaccess_log1 
and so on...

how can i acheive this gaol, do have to use crontab?
Thanks
J.P.



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