/etc/logrotate.d/httpd - CentOS Linux 6

This is the default example configuration of httpd provided by Apache. This config file was generated by Apache running on CentOS 6.

It is located under: /etc/logrotate.d/httpd

    /var/log/httpd/*log {
    missingok
    notifempty
    sharedscripts
    delaycompress
    postrotate
        /sbin/service httpd reload > /dev/null 2>/dev/null || true
    endscript
}

    
  

Config Details

Location
/etc/logrotate.d/httpd
Operating system
CentOS Linux 6
Length
9 lines
MD5 checksum
1091ce80193376120250d622f34bf968

Usage

Download the raw file with wget or curl

Wget

wget -O httpd.example http://exampleconfig.com/static/raw/apache/centos6/etc/logrotate.d/httpd

cURL

curl http://exampleconfig.com/static/raw/apache/centos6/etc/logrotate.d/httpd > httpd.example