
/chroot/httpd85/var/log/apache2/*.log
/chroot/httpd85/var/log/apache2/main/*.log
/chroot/httpd85/var/log/apache2/php/*.log
/chroot/httpd85/var/log/apache2/phpmail/*.log
/chroot/httpd85/var/log/apache2/vhosts/*/*.log {
	daily
	dateext
	missingok
	rotate 30
	compress
	create 640 www-data www-data
	su root www-data
	sharedscripts
	postrotate
		if [ -f /chroot/httpd85/run/apache2/apache2.pid ]; then
			if [ -d /run/systemd/system ]; then
				systemctl restart apache2-chroot-85 || true
			else
				/etc/init.d/apache2-chroot-85 restart >/dev/null || true
			fi
			sleep 2
		fi
	endscript
}
