Server IP : 103.53.40.154 / Your IP : 3.149.253.73 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /etc/logrotate.d/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
/etc/apache2/logs/domlogs/_wildcard_ /etc/apache2/logs/domlogs/_wildcard_-ssl_log /etc/apache2/logs/domlogs/proxy-subdomains-vhost.localhost /etc/apache2/logs/domlogs/md-in-35.temp.domains /etc/apache2/logs/domlogs/localhost { rotate 8 missingok size 500M dateext compress delaycompress notifempty sharedscripts postrotate _bytes_logs=(/etc/apache2/logs/domlogs/md-in-35.temp.domains-bytes_log /etc/apache2/logs/domlogs/proxy-subdomains-vhost.localhost-bytes_log /etc/apache2/logs/domlogs/_wildcard_-bytes_log /etc/apache2/logs/domlogs/localhost-bytes_log) for _bytes_log in ${_bytes_logs[@]}; do if [ -f ${_bytes_log} ]; then > ${_bytes_log} fi done killall -HUP splitlogs _date_suffix=$(date +%Y%m%d) for i in $1; do _log=${i}-${_date_suffix} if [ -f ${_log} ]; then gzip ${_log} mv ${_log}.gz /home/apachelogs/ fi done endscript } /home/apachelogs/global_logs/access_logs { missingok notifempty compress rotate 7 daily copytruncate }