|
[ Order a Server ] [ Server Support ] |
|
[ Getting Started ] [ Server Help ] [ Add on Help ] [ Solution ] [ Trouble Shooting ] PLEASE NOTE, THIS IS VERY OLD ARCHIVE INFORMATION AND MAY NOT FUNCTION ON NEW SERVERS
Rotating Web Server Log FilesYou can use therotatelogs utility to rotate your Virtual
Server web server log files. Basically, rotatelogs is a
wrapper that you include in the Log definitions in the
/www/conf/httpd.conf file on your Virtual Server:
This creates the filesTransferLog "|rotatelogs /www/logs/access_log 86400" /www/logs/access_log.nnnn where nnnn is
the system time at which the log starts (system time is the number of seconds
that have elapsed since January 1, 1970).
At the end of each rotation time (here after 24 hours) a new log is
started.
In order to use the
You can rotate the other web server log files as well: AgentLog "|/usr/local/bin/rotatelogs /www/logs/agent_log 86400" RefererLog "|/usr/local/bin/rotatelogs /www/logs/referer_log 86400" ErrorLog "|/usr/local/bin/rotatelogs /www/logs/error_log 86400"
PLEASE NOTE, THIS IS OLD ARCHIVE INFORMATION AND MAY NOT FUNCTION ON NEW SERVERS |