範例:

    CustomLog       /var/log/httpd/access_log.web1 combined

    # %Y-%m-%d_access_log 檔名格式為年月日
    # 86400 一天rotate 一次
    # 480 台灣時區 +8
    CustomLog       "| /usr/local/sbin/rotatelogs /var/log/httpd/web1/%Y-%m-%d_access_log 86400 480" combined

 

undefined

arrow
arrow
    文章標籤
    apache rotatelogs
    全站熱搜

    helloworld 發表在 痞客邦 留言(0) 人氣()