/etc/logrotate.d/httpd - Red Hat Enterprise Linux 8 (Ootpa)

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

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

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

    
  

Config Details

Location
/etc/logrotate.d/httpd
Operating system
Red Hat Enterprise Linux 8 (Ootpa)
Length
9 lines
MD5 checksum
35642ac4c67e5e24d436e32c664d2322

Usage

Download the raw file with wget or curl

Wget

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

cURL

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