Apache HTTP Server Configuration - Linux

/etc/logrotate.d/apache2

Quick Actions

๐Ÿ“ฅ Download Original apache2

Configuration File Information

Configuration File Content

/etc/logrotate.d/apache2
21 lines
/var/log/apache2/*.log {
    daily
    missingok
    rotate 14
    compress
    delaycompress
    notifempty
    create 640 root adm
    sharedscripts
    prerotate
	if [ -d /etc/logrotate.d/httpd-prerotate ]; then
	    run-parts /etc/logrotate.d/httpd-prerotate
	fi
    endscript
    postrotate
	if pgrep -f ^/usr/sbin/apache2 > /dev/null; then
	    invoke-rc.d apache2 reload 2>&1 | logger -t apache2.logrotate
	fi
    endscript
}

        

Download Commands

apache2 โ€ข

Download the 100% original unaltered configuration file pulled from Apache HTTP Server

Using wget:

wget -O apache2.example https://exampleconfig.com/api/v1/config/original/ab347819cceccf236cfe769a13b89d2a?hint=apache2

Using curl:

curl https://exampleconfig.com/api/v1/config/original/ab347819cceccf236cfe769a13b89d2a?hint=apache2 > apache2.example

Related Configuration Files

Technical Details

File Location
/etc/logrotate.d/apache2
Platform
Linux
File Size
21 lines
Application
Apache HTTP Server
Compatible Versions
MD5 Checksum
ab347819cceccf236cfe769a13b89d2a
SHA256 Checksum
d062e51cec8a30eec96cead2cba84e7c796e0205f732a152e0dc38c32a18dcb1