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: Ubuntu 20.04 LTS (Focal Fossa)
โ Also compatible:
Ubuntu 18.04 LTS (Bionic Beaver),
โ Different versions:
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
postrotate
if invoke-rc.d apache2 status > /dev/null 2>&1; then \
invoke-rc.d apache2 reload > /dev/null 2>&1; \
fi;
endscript
prerotate
if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
run-parts /etc/logrotate.d/httpd-prerotate; \
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/15238daf142d206ffedd128f9b2d78ce?hint=apache2
Using curl:
curl https://exampleconfig.com/api/v1/config/original/15238daf142d206ffedd128f9b2d78ce?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 ยท Ubuntu 20.04 LTS (Focal Fossa)
/etc/logrotate.d/apache2
APT ยท Ubuntu 20.04 LTS (Focal Fossa)
/etc/logrotate.d/apache2
APT ยท Ubuntu 20.04 LTS (Focal Fossa)