File tree Expand file tree Collapse file tree 2 files changed +5
-20
lines changed Expand file tree Collapse file tree 2 files changed +5
-20
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,8 @@ server [options]
106106
107107--hostname <hostname> ...
108108 Specify hostname associated with current virtual host.
109- If hostname starts with ".", treat it as a suffix, to match all levels of sub domains.
109+ If value starts with ".", treat it as a suffix, to match all levels of sub domains. e.g. ".example.com"
110+ If value ends with ".", treat it as a prefix, to match all levels of suffix domains.
110111
111112-r|--root <directory>
112113 Root directory of the server.
@@ -256,13 +257,4 @@ server [options]
256257 If request host name does not match any virtual host,
257258 server will try to use first virtual host that has no hostname,
258259 otherwise use the first virtual host.
259-
260- If hostname option starts with ".",
261- treat it as a suffix,
262- to match all levels of sub domains,
263- e.g. ".example.com".
264-
265- If hostname option ends with ".",
266- treat it as a prefix,
267- to match all levels of suffix domains.
268260```
Original file line number Diff line number Diff line change @@ -104,7 +104,9 @@ server [选项]
104104 与--listen类似,但强制使用TLS模式。若未指定证书和私钥,则启动失败。
105105
106106--hostname <主机名> ...
107- 指定与当前虚拟主机关联的主机名。如果值以“.”开头,则将其当作后缀,匹配该域下的所有子域名。
107+ 指定与当前虚拟主机关联的主机名。
108+ 如果值以“.”开头,则将其当作后缀,匹配该域下的所有子域名,例如“.example.com”。
109+ 如果值以“.”结尾,则将其当作前缀,匹配所有域名后缀。
108110
109111-r|--root <目录>
110112 服务器的根目录。
@@ -253,13 +255,4 @@ server [选项]
253255 如果请求的主机名不匹配任何虚拟主机,
254256 服务器尝试使用第一个没有指定主机名的虚拟主机,
255257 如果失败则使用第一个虚拟主机。
256-
257- 如果主机名选项以“.”开头,
258- 则将其当作后缀,
259- 匹配所有层级的子域名,
260- 例如“.example.com”。
261-
262- 如果主机名以“.”结尾,
263- 则将其当作前缀,
264- 匹配所有域名后缀。
265258```
You can’t perform that action at this time.
0 commit comments