I understand that initially the rotation of logs is not configured at all
I realized at myself as follows:
1. All logs are stored in the site directory.
Example:
/home/USER/www/vhosts/SITE/httpdocs- for site
/home/USER/www/vhosts/SITE/logs - for logs
Edit file
/usr/local/apache/conf.d/vhosts.conf and add
ErrorLog "/home/USER/www/vhosts/SITE/logs/http_error.log"
CustomLog /home/USER/www/vhosts/SITE/logs/http_access.log combined
to the configuration of each virtual host. Then create the files http_error.log & http_access.log
2. In dir /etc/logrotate.d
create file httpd with content:
/home/*/www/vhosts/*/logs/http_access.log /home/*/www/vhosts/*/logs/http_error.log /usr/local/apache/logs/access_log /usr/local/apache/logs/error_log /usr/local/apache/logs/suphp_log{
maxsize 50000k
notifempty
weekly
rotate 8
missingok
}