Apache HTTP Server Configuration - Linux
/etc/logrotate.d/apache2
Quick Actions
๐ฅ Download Original apache2Configuration File Information
Authentic & Original
Unaltered apache2 from fresh installation.
Linux Distribution Support
๐ Currently viewing: Debian 11 (Bullseye)
โ Also compatible:
Ubuntu 22.04 LTS (Jammy Jellyfish),
โ Different versions:
Ubuntu:
Ubuntu 18.04 LTS (Bionic Beaver),
Ubuntu 20.04 LTS (Focal Fossa),
Ubuntu 24.04 LTS (Noble Numbat)
Alpine:
Alpine Linux v3.21
Configuration File Content
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
/etc/logrotate.d/apache2
Apache HTTP Server ยท Debian 9 (Stretch)
/etc/logrotate.d/apache2
Apache HTTP Server ยท Debian 9 (Stretch)
/etc/logrotate.d/apache2
Apache HTTP Server ยท Debian 9 (Stretch)
/etc/logrotate.d/apache2
APT ยท Debian 11 (Bullseye)
/etc/logrotate.d/apache2
APT ยท Debian 11 (Bullseye)
/etc/logrotate.d/apache2
APT ยท Debian 11 (Bullseye)