I changed /etc/apache2/envars
like this.
#export APACHE_LOG_DIR=/var/log/apache2$SUFFIX
export APACHE_LOG_DIR=/lv1/var/log/apache2$SUFFIX
And it seems to work. Logs appended in the new directory.
And I changed /etc/logrotate.d/apache2
like this.
/lv1/var/log/apache2/*.log {
daily
And it seems not to work. Logs keep being appended to the same access.log
.
How can I make logroate to work for this?
logrotate --debug
manually? This could be anything from missing access rights to a syntax error in your file.