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 9 (Stretch)
โ Also compatible:
โ 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 /etc/init.d/apache2 status > /dev/null ; then \
/etc/init.d/apache2 reload > /dev/null; \
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/7322a4f050c1e2454249695236a3472c?hint=apache2
Using curl:
curl https://exampleconfig.com/api/v1/config/original/7322a4f050c1e2454249695236a3472c?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 9 (Stretch)
/etc/logrotate.d/apache2
APT ยท Debian 9 (Stretch)
/etc/logrotate.d/apache2
APT ยท Debian 9 (Stretch)