nginx で combined な log を書く
NginxHttpLogModule - Nginx Wiki に書いてあるんだけど、ちゃんと読まなくてハマったのでメモ。
log_format combined ‘$remote_addr - $remote_user [$time_local] ’
‘”$request” $status $body_bytes_sent ’
‘”$http_referer” “$http_user_agent”’;
って書いてあるけど、直前の行に書いてある通り元から定義されているので nginx.conf に書いてはいけない。 書くとエラーになります。
Posted in Debian | コメントはありません |