SSLでセキュアなWebサイト - ADSL Routerの設定

Last Modified: 2004.02.18

4. logrotateの設定
SSLのログとして、/var/log/httpdに ssl_engine_log, ssl_request_logファイルが作成される。
これらのファイルは結構大きくなるので、logrotateの設定を行う。


/etc/logrotate.d/apacheを編集


 /var/log/httpd/access_log {
     missingok
     postrotate
         /usr/bin/killall -HUP httpd
     endscript
 }

 /var/log/httpd/agent_log {
     missingok
     postrotate
         /usr/bin/killall -HUP httpd
     endscript
 }

 /var/log/httpd/error_log {
     missingok
     postrotate
         /usr/bin/killall -HUP httpd
     endscript
 }

 /var/log/httpd/referer_log {
     missingok
     postrotate
         /usr/bin/killall -HUP httpd
     endscript
 }

 /var/log/httpd/ssl_engine_log {      <--- 追加
     missingok                        <--- 追加
     postrotate                       <--- 追加
         /usr/bin/killall -HUP httpd  <--- 追加
     endscript                        <--- 追加
 }                                    <--- 追加

 /var/log/httpd/ssl_request_log {     <--- 追加
     missingok                        <--- 追加
     postrotate                       <--- 追加
         /usr/bin/killall -HUP httpd  <--- 追加
     endscript                        <--- 追加
 }                                    <--- 追加

<Prev Top Next>
Copyright(C) 2001-2003 Katsuyuki Kobayashi.
このサイトへのリンクや引用時はメール頂戴
webmaster@kkoba.com