Code: Select all
CustomLog "/var/customers/logs/domain.de-access.log" combinedJetzt frag ich mich - warum?
Code: Select all
CustomLog "/var/customers/logs/domain.de-access.log" combinedDas ist unlogisch, oder wie bringt man logrotate dazu, monatlich das Logfile zu rotieren, aber nur alle zwei Monate den Apache zu restarten?markuman wrote:Nun schreibt er die Logs immer eine Zeit lang in domain.de-access.log und nach ~1 Monat nach domain.de-access.log.1 Und wieder nach einem Monat erneut nach domain.de-access.log
OS ist Debian Lenny 64bit.matzewe01 wrote:Es wären erstmal mehr Details zu Deinem System notwendig.
Welches OS, welche apache Version, welche logrotate Konfiguration.
Code: Select all
/var/log/apache2/*.log {
weekly
missingok
rotate 52
compress
delaycompress
notifempty
create 640 root adm
sharedscripts
postrotate
if [ -f "`. /etc/apache2/envvars ; echo ${APACHE_PID_FILE:-/var/run/apache2.pid}`" ]; then
/etc/init.d/apache2 reload > /dev/null
fi
endscript
}