Mercurial > hg > nginx-site
view xml/ru/docs/switches.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 | 4a4caa566120 |
children | 7db449e89e92 |
line wrap: on
line source
<!DOCTYPE article SYSTEM "../../../dtd/article.dtd"> <article title="Параметры командной строки nginx" link="/ru/docs/switches.html" lang="ru"> <section> <para> nginx поддерживает следующие параметры: <list> <listitem> <command>-c <<value>файл</value>></command>—указывает использовать конфигурационный файл <<value>файл</value>> вместо файла по умолчанию. </listitem> <listitem> <command>-g</command>—задаёт глобальные директивы конфигурации, например, <programlisting> nginx -g "pid /var/run/nginx.pid; worker_processes `sysctl -n hw.ncpu`;" </programlisting> </listitem> <listitem> <command>-t</command>—тестировать конфигурацию. nginx проверяет синтаксическую правильность конфигурации, а затем пытается открыть файлы, описанные в конфигурации. </listitem> <listitem> <command>-v</command>—показать версию nginx. </listitem> <listitem> <command>-V</command>—показать версию nginx, версию компилятора и параметры конфигурации сборки. </listitem> </list> </para> </section> </article>