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/a38d9e980faebcda9a1998fd0f90b69e?hint=apache2

Using curl:

curl https://exampleconfig.com/api/v1/config/original/a38d9e980faebcda9a1998fd0f90b69e?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
a38d9e980faebcda9a1998fd0f90b69e
SHA256 Checksum
19c251cf075acba0852a0bec3b3ca48dbe9ab988c1c541ef80bbf7a6052918ef