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
	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

Technical Details

File Location
/etc/logrotate.d/apache2
Platform
Linux
File Size
21 lines
Application
Apache HTTP Server
MD5 Checksum
7322a4f050c1e2454249695236a3472c
SHA256 Checksum
41dd2ebc9fc72d59b7b513cd4c766cd17732325b49ac8ad96cebe7e987f0b38d