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

Technical Details

File Location
/etc/logrotate.d/apache2
Platform
Linux
File Size
21 lines
Application
Apache HTTP Server
Compatible Versions
MD5 Checksum
15238daf142d206ffedd128f9b2d78ce
SHA256 Checksum
c27c1916c4b2ebe021caa2254efbd5098ef11997ca5e5693bee98034c48fc46d