diff options
| author | Ruslan Ermilov <ru@nginx.com> | 2011-09-15 08:24:33 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@nginx.com> | 2011-09-15 08:24:33 +0000 |
| commit | 2a46092c5ad4c647f0df4bc58795ed744e8252eb (patch) | |
| tree | 0628577610456afe5495ea15d31b0544bbcbd285 | |
| parent | c940f5fc99130720a00538637a2bedc4d7472ea1 (diff) | |
| download | nginx-2a46092c5ad4c647f0df4bc58795ed744e8252eb.tar.gz nginx-2a46092c5ad4c647f0df4bc58795ed744e8252eb.tar.bz2 | |
- The module name is now also output as an HTML header.
- Agreed that examples can only contain literal text.
- Agreed to call modules "ngx_*_module".
- Renamed XML element "http-error" to a more general "http-status".
- Fixed text of error codes to match the actual code.
| -rw-r--r-- | docs/dtd/module.dtd | 8 | ||||
| -rw-r--r-- | docs/xml/http/ngx_http_core_module.xml | 54 | ||||
| -rw-r--r-- | docs/xml/ngx_core_module.xml | 15 | ||||
| -rw-r--r-- | docs/xsls/content.xsls | 2 | ||||
| -rw-r--r-- | docs/xsls/module.xsls | 1 |
5 files changed, 41 insertions, 39 deletions
diff --git a/docs/dtd/module.dtd b/docs/dtd/module.dtd index 40a807e1b..0e448fa75 100644 --- a/docs/dtd/module.dtd +++ b/docs/dtd/module.dtd @@ -24,7 +24,7 @@ <!ELEMENT context (#PCDATA)* > <!ELEMENT para (#PCDATA | argument | c-def | c-func | code | command | - dq | emphasis | example | header | http-error | link | + dq | emphasis | example | header | http-status | link | list | note | parameter | pathname | value | var)* > <!ELEMENT argument (#PCDATA)* > @@ -41,12 +41,12 @@ <!ELEMENT emphasis (#PCDATA)* > -<!ELEMENT example ANY > +<!ELEMENT example (#PCDATA)* > <!ELEMENT header (#PCDATA | argument)* > -<!ELEMENT http-error EMPTY > -<!ATTLIST http-error +<!ELEMENT http-status EMPTY > +<!ATTLIST http-status code CDATA #REQUIRED text CDATA #IMPLIED > diff --git a/docs/xml/http/ngx_http_core_module.xml b/docs/xml/http/ngx_http_core_module.xml index 3412e49f7..05f50da3e 100644 --- a/docs/xml/http/ngx_http_core_module.xml +++ b/docs/xml/http/ngx_http_core_module.xml @@ -202,8 +202,8 @@ This directive can be used during debugging, or when using the <var>$request_body_file</var> variable, or the <link doc="ngx_http_perl_module.xml" id="methods">$r->request_body_file</link> -method of the -<link doc="ngx_http_perl_module.xml">http_perl</link> module. +method of the module +<link doc="ngx_http_perl_module.xml">ngx_http_perl_module</link>. </para> <para> @@ -300,8 +300,8 @@ Defines a timeout for reading client request body. A timeout is only set between two successive read operations, not for the transmission of the whole request body. If a client does not transmit anything within this time, -the error -<http-error code="408" text="Request time out"/> +the client error +<http-status code="408" text="Request Time-out"/> is returned. </para> @@ -337,8 +337,8 @@ directive. <para> Defines a timeout for reading client request header. If a client does not transmit the entire header within this time, -the error -<http-error code="408" text="Request time out"/> +the client error +<http-status code="408" text="Request Time-out"/> is returned. </para> @@ -357,9 +357,9 @@ Sets the maximum allowed size of the client request body, specified in the <header>Content-Length</header> request header field. -If <argument>size</argument> is greater than the configured value, the -<http-error code="413" text="Request Entity Too Large"/> -error is returned to a client. +If it exceeds the configured value, the client error +<http-status code="413" text="Request Entity Too Large"/> +is returned. Please be aware that <link doc="/web/upload.xml">browsers cannot correctly display this error</link>. @@ -539,8 +539,9 @@ request header. <para> Specifies that a given location can only be used for internal requests. -For external requests, the <http-error code="404" text="Not found"/> -error is returned. +For external requests, the client error +<http-status code="404" text="Not Found"/> +is returned. Internal requests are the following: <list type="bullet"> @@ -552,15 +553,15 @@ requests redirected by the <link id="error_page">error_page</link> directive; <listitem> subrequests formed by the <command>include virtual</command> -command of the -<link doc="ngx_http_ssi_module.xml">http_ssi</link> module; +command of the module +<link doc="ngx_http_ssi_module.xml">ngx_http_ssi_module</link>; </listitem> <listitem> requests changed by the <link doc="ngx_http_rewrite_module.xml" id="rewrite">rewrite</link> -directive of the -<link doc="ngx_http_rewrite_module.xml">http_rewrite</link> module. +directive of the module +<link doc="ngx_http_rewrite_module.xml">ngx_http_rewrite_module</link>. </listitem> </list> @@ -633,12 +634,13 @@ MSIE will close keep-alive connection in about 60 seconds. <para> Sets the maximum <argument>number</argument> and <argument>size</argument> of buffers used when reading large client request headers. -A request line cannot exceed the size of one buffer, or the -<http-error code="414" text="Request URI too large"/> -error is returned. +A request line cannot exceed the size of one buffer, or the client error +<http-status code="414" text="Request-URI Too Large"/> +is returned. A request header field cannot exceed the size of one buffer as well, or the -<http-error code="400" text="Bad request"/> -error is returned. +client error +<http-status code="400" text="Bad Request"/> +is returned. Buffers are allocated only on demand. By default, the buffer size is equal to one memory page size. It is either 4K or 8K, platform dependent. @@ -658,9 +660,9 @@ into the keep-alive state, these buffers are freed. Limits allowed HTTP methods inside a location. The GET method also implies the HEAD method. Access to other methods can be limited using the -<link doc="ngx_http_access_module.xml">http_access</link> +<link doc="ngx_http_access_module.xml">ngx_http_access_module</link> and -<link doc="ngx_http_auth_basic_module.xml">http_auth_basic</link> +<link doc="ngx_http_auth_basic_module.xml">ngx_http_auth_basic_module</link> modules directives: <example> limit_except GET { @@ -1477,8 +1479,8 @@ If a URI need to be modified, the <para> Allows access if any of the -<link doc="ngx_http_access_module.xml">http_access</link> -or <link doc="ngx_http_auth_basic_module.xml">http_auth_basic</link> +<link doc="ngx_http_access_module.xml">ngx_http_access_module</link> +or <link doc="ngx_http_auth_basic_module.xml">ngx_http_auth_basic_module</link> modules grant access. <example> location / { @@ -1985,8 +1987,8 @@ Enables or disables the use of underscores in client request header fields. <section id="variables" name="Embedded Variables"> <para> -The http_core module supports embedded variables with names matching -those of the Apache Server. +The module <code>ngx_http_core_module</code> supports embedded variables with +names matching those of the Apache Server. First of all, these are variables representing client request header fields, such as, <var>$http_user_agent</var>, <var>$http_cookie</var>, and so on. diff --git a/docs/xml/ngx_core_module.xml b/docs/xml/ngx_core_module.xml index 2afc3172d..6cd6a1ef9 100644 --- a/docs/xml/ngx_core_module.xml +++ b/docs/xml/ngx_core_module.xml @@ -4,7 +4,7 @@ <module name="Core Module" id="core_module"> -<section name="Example Configuration" id="example"> +<section id="example" name="Example Configuration"> <para> <example> @@ -25,7 +25,7 @@ events { </section> -<section name="Directives" id="directives"> +<section id="directives" name="Directives"> <directive name="daemon"> <syntax>daemon <value>on</value> | <value>off</value></syntax> @@ -57,9 +57,8 @@ of an executable file; </listitem> <listitem> -use of variables by the -<link doc="http/ngx_http_perl_module.xml">http_perl</link> -module; +use of variables by the module +<link doc="http/ngx_http_perl_module.xml">ngx_http_perl_module</link>; </listitem> <listitem> @@ -77,9 +76,9 @@ of an executable file. </para> <para> -The TZ variable is always inherited and made available to the -<link doc="http/ngx_http_perl_module.xml">http_perl</link> -module, unless configured explicitly. +The TZ variable is always inherited and made available to the module +<link doc="http/ngx_http_perl_module.xml">ngx_http_perl_module</link>, +unless configured explicitly. </para> <para> diff --git a/docs/xsls/content.xsls b/docs/xsls/content.xsls index ddeeb8ef8..ef83c5843 100644 --- a/docs/xsls/content.xsls +++ b/docs/xsls/content.xsls @@ -34,7 +34,7 @@ X:stylesheet { X:template = "header" { <code> !!; </code> } - X:template = "http-error" { + X:template = "http-status" { !{@code} X:text{ (} !{@text} X:text{)} } diff --git a/docs/xsls/module.xsls b/docs/xsls/module.xsls index 79173825c..4743700bd 100644 --- a/docs/xsls/module.xsls +++ b/docs/xsls/module.xsls @@ -24,6 +24,7 @@ X:template = "/module" { </head> <body> + <center><h3> !{@name} </h3></center> !!; </body> |
