[Nginx]ヘルスチェックログを出さないようにする

LINEで送る
Pocket

  • log.conf
map $http_user_agent $log_ua {
 
    ~ELB-HealthChecker 0;
 
    default 1;
}
  • adachin.me.conf
access_log  /var/log/nginx/access.log  main if=$log_ua;

 

Was this helpful?

0 / 0

コメントを残す 0

Your email address will not be published. Required fields are marked *