/var/log/apache2/*.log {
daily
missingok
rotate 31
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
}
/home/admin/public_html/mywebsite.com/log/*.log {
daily
missingok
rotate 31
compress
delaycompress
missingok
# 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
}
This is the exact contents of apache2
file, minus the fake domain name).
When I logged back into the server after 2 days access.log
in mywebsite.com/log
was still multiple gigs.
Is this likely just a chmod
issue? (I left the commented out lines in my question, just in case they could be the issue.