Mercurial > hg > nginx-site
comparison xml/en/docs/http/ngx_http_core_module.xml @ 587:5bb7716cae7e
Documented in more depth how server names are matched.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 12 Jul 2012 09:58:35 +0000 |
parents | be54c443235a |
children | 764fbac1b8b4 |
comparison
equal
deleted
inserted
replaced
586:6aa162f9d925 | 587:5bb7716cae7e |
---|---|
2196 Before 0.8.48, the machine's hostname was used by default. | 2196 Before 0.8.48, the machine's hostname was used by default. |
2197 </note> | 2197 </note> |
2198 </para> | 2198 </para> |
2199 | 2199 |
2200 <para> | 2200 <para> |
2201 The name checking order is as follows: | 2201 When searching for a virtual server by name, |
2202 if name matches more than one of the specified variants, | |
2203 e.g. both mask and regular expression match, the first matching | |
2204 variant will be choosen, in the following order of precedence: | |
2202 <list type="enum"> | 2205 <list type="enum"> |
2203 | 2206 |
2204 <listitem> | 2207 <listitem> |
2205 full names | 2208 full name |
2206 </listitem> | 2209 </listitem> |
2207 | 2210 |
2208 <listitem> | 2211 <listitem> |
2209 names with the prefix mask, e.g. “<literal>*.example.com</literal>” | 2212 longest name with a prefix mask, |
2213 e.g. “<literal>*.example.com</literal>” | |
2210 </listitem> | 2214 </listitem> |
2211 | 2215 |
2212 <listitem> | 2216 <listitem> |
2213 names with the suffix mask, e.g. “<literal>mail.*</literal>” | 2217 longest name with a suffix mask, |
2218 e.g. “<literal>mail.*</literal>” | |
2214 </listitem> | 2219 </listitem> |
2215 | 2220 |
2216 <listitem> | 2221 <listitem> |
2217 regular expressions | 2222 first matching regular expression |
2223 (in order of appearance in a configuration file) | |
2218 </listitem> | 2224 </listitem> |
2219 | 2225 |
2220 </list> | 2226 </list> |
2221 </para> | 2227 </para> |
2222 | 2228 |