Mercurial > hg > nginx-quic
comparison docs/xml/http/ngx_http_core_module.xml @ 4141:a18b10aea510
Fixed markup.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 20 Sep 2011 13:15:41 +0000 |
parents | 5e2103cffd80 |
children |
comparison
equal
deleted
inserted
replaced
4140:f57060622538 | 4141:a18b10aea510 |
---|---|
151 <para> | 151 <para> |
152 The <argument>path</argument> value can contain variables. | 152 The <argument>path</argument> value can contain variables. |
153 </para> | 153 </para> |
154 | 154 |
155 <para> | 155 <para> |
156 If <command>alias</command> is used inside a location defined | 156 If <code>alias</code> is used inside a location defined |
157 with a regular expression then such regular expression should | 157 with a regular expression then such regular expression should |
158 contain captures and <command>alias</command> should refer to | 158 contain captures and <code>alias</code> should refer to |
159 these captures (0.7.40), for example: | 159 these captures (0.7.40), for example: |
160 <example> | 160 <example> |
161 location ~ ^/users/(.+\.(?:gif|jpe?g|png))$ { | 161 location ~ ^/users/(.+\.(?:gif|jpe?g|png))$ { |
162 alias /data/w3/images/$1; | 162 alias /data/w3/images/$1; |
163 } | 163 } |
439 | 439 |
440 <para> | 440 <para> |
441 Defines the URI that will be shown for the specified errors. | 441 Defines the URI that will be shown for the specified errors. |
442 These directives are inherited from the previous level if and | 442 These directives are inherited from the previous level if and |
443 only if there are no | 443 only if there are no |
444 <command>error_page</command> | 444 <code>error_page</code> |
445 directives on | 445 directives on |
446 the current level. | 446 the current level. |
447 A URI value can contain variables. | 447 A URI value can contain variables. |
448 </para> | 448 </para> |
449 | 449 |
1462 The <argument>path</argument> value can contain variables. | 1462 The <argument>path</argument> value can contain variables. |
1463 </para> | 1463 </para> |
1464 | 1464 |
1465 <para> | 1465 <para> |
1466 A path to the file is constructed by merely adding a URI to the value | 1466 A path to the file is constructed by merely adding a URI to the value |
1467 of the <command>root</command> directive. | 1467 of the <code>root</code> directive. |
1468 If a URI need to be modified, the | 1468 If a URI need to be modified, the |
1469 <link id="alias">alias</link> directive should be used. | 1469 <link id="alias">alias</link> directive should be used. |
1470 </para> | 1470 </para> |
1471 | 1471 |
1472 </directive> | 1472 </directive> |
1877 <example> | 1877 <example> |
1878 location / { | 1878 location / { |
1879 try_files $uri $uri/ @drupal; | 1879 try_files $uri $uri/ @drupal; |
1880 } | 1880 } |
1881 </example> | 1881 </example> |
1882 the <command>try_files</command> directive is equivalent to | 1882 the <code>try_files</code> directive is equivalent to |
1883 <example> | 1883 <example> |
1884 location / { | 1884 location / { |
1885 error_page 404 = @drupal; | 1885 error_page 404 = @drupal; |
1886 log_not_found off; | 1886 log_not_found off; |
1887 } | 1887 } |
1896 fastcgi_param SCRIPT_FILENAME /path/to$fastcgi_script_name; | 1896 fastcgi_param SCRIPT_FILENAME /path/to$fastcgi_script_name; |
1897 | 1897 |
1898 ... | 1898 ... |
1899 } | 1899 } |
1900 </example> | 1900 </example> |
1901 <command>try_files</command> checks the existence of the PHP file | 1901 <code>try_files</code> checks the existence of the PHP file |
1902 before passing the request to the FastCGI server. | 1902 before passing the request to the FastCGI server. |
1903 </para> | 1903 </para> |
1904 | 1904 |
1905 <para> | 1905 <para> |
1906 Example for Wordpress and Joomla: | 1906 Example for Wordpress and Joomla: |
2160 <tag-name><var>$server_addr</var></tag-name> | 2160 <tag-name><var>$server_addr</var></tag-name> |
2161 <tag-desc> | 2161 <tag-desc> |
2162 an address of the server which accepted a request | 2162 an address of the server which accepted a request |
2163 <para> | 2163 <para> |
2164 Computing a value of this variable usually requires one system call. | 2164 Computing a value of this variable usually requires one system call. |
2165 To avoid a system call, the <command>listen</command> directives | 2165 To avoid a system call, the <link id="listen">listen</link> directives |
2166 must specify addresses and use the <parameter>bind</parameter> parameter | 2166 must specify addresses and use the <parameter>bind</parameter> parameter |
2167 </para> | 2167 </para> |
2168 </tag-desc> | 2168 </tag-desc> |
2169 | 2169 |
2170 <tag-name><var>$server_name</var></tag-name> | 2170 <tag-name><var>$server_name</var></tag-name> |