今更という感じだが、Apacheのログローテートの記述を書き留めておく。
設定する機会も少ない上、いつもどこかからコピーしてきているので、厳密に覚えてないんだよね。
1 2 |
ErrorLog "|/usr/sbin/rotatelogs /var/log/apache2/error_log.%Y%m%d 86400 540" CustomLog "|/usr/sbin/rotatelogs /var/log/apache2/access_log.%Y%m%d 86400 540" combined |
No comments yet. You should be kind and add one!
By submitting a comment you grant typista a perpetual license to reproduce your words and name/web site in attribution. Inappropriate and irrelevant comments will be removed at an admin’s discretion. Your email is used for verification purposes only, it will never be shared.