●バックアップの取得 [root@web2 logs]# cp -p /etc/logrotate.d/httpd ~/httpd.org ●httpdの設定 以下の内容に変更する。 ●Web2 /etc/httpd/logs/*log /etc/httpd/logs/*log_aff /etc/httpd/logs/*log_ad { missingok notifempty sharedscripts daily rotate 90 postrotate /sbin/service httpd reload > /dev/null 2>/dev/null || true endscript } ●DB2 /var/log/httpd/*log { missingok notifempty sharedscripts daily rotate 90 postrotate /sbin/service httpd reload > /dev/null 2>/dev/null || true endscript } ●Apache再起動 [root@web2 logs]# /etc/init.d/httpd restart Stopping httpd: [ OK ] Starting httpd: [ OK ]