Mercurial > hg > nginx-site
view xml/ja/docs/debugging_log.xml @ 102:c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Specifying <default> is made non-optional.
Visible changes:
- "types" and "proxy_set_header" get proper defaults (not yet displayed
nicely);
- "fastcgi_hide_header", "fastcgi_ignore_headers", "fastcgi_pass_header",
"proxy_hide_header", "proxy_ignore_headers", and "proxy_pass_header"
now have their (empty) defaults documented;
- mentions of "fastcgi_redirect_errors" and "proxy_redirect_errors" which
are long unsupported were removed.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Wed, 19 Oct 2011 05:15:24 +0000 |
parents | 9d544687d02c |
children | 7db449e89e92 |
line wrap: on
line source
<!DOCTYPE article SYSTEM "../../../dtd/article.dtd"> <article title="デバッギングログ" link="/ja/docs/debugging_log.html" lang="ja"> <section> <para> デバッギングログを有効にするには、nginx をデバッグオプションを付けて設定する必要があります: <programlisting> ./configure --with-debug ... </programlisting> 次に <dirname>error_log</dirname> の <dirname>debug</dirname> レベルをセットします: <programlisting> error_log /path/to/log debug; </programlisting> nginx の Windows バイナリバージョンでは常にデバッグログモードがサポートされてビルドされているので、<dirname>debug</dirname> レベルをセットするだけです。 </para> <para> 別のレベル、例えば <i>server</i> レベルでログを定義するとそのサーバでのデバッギングログが無効になりますので注意してください: <programlisting> error_log /path/to/log debug; http { server { error_log /path/to/log; ... </programlisting> このサーバログをコメントアウトするか <dirname>debug</dirname> フラグを追加してください: <programlisting> error_log /path/to/log debug; http { server { error_log /path/to/log debug; ... </programlisting> </para> <para> また、特定のアドレスだけデバッギングログを有効にすることもできます: <programlisting> error_log /path/to/log; events { debug_connection 192.168.1.1; debug_connection 192.168.10.0/24; } </programlisting> </para> </section> </article>