Apache logrotate change

  • Hello,
    On my server I used the following enhancement for logrotating apache logs:

    Code: logrotate.d/apache2
    1. ...
    2. dateext
    3. dateyesterday
    4. ...



    And rotate directly after midnight.


    Background and advantage of this change is: Every log file stays at that assigned name and doesn't change on next day.
    (I rsync this logfiles to another machine, and this shorten traffic significantly)


    Peter

    i-MSCP 1.5.1 + patches - debian stretch (latest) - DebugBar 1.1.2 - LetsEncrypt 3.5.0 - Mailman 2.0.4 - RoundcubePlugins 2.0.1