Apacheconfiguration中的通配符子域(* .example.com)是否也包含根(example.com)?

在Apacheconfiguration文件(如ServerAliasRewriteRule ,…)中有什么东西有通配线

 *.example.com 

还包括根

 example.com 

还是必须单独添加此条目(如ServerAlias *.example.com example.com )?

否, *.example.comexample.com不匹配。 你至less错过了一个点,看看? 就在“例子”之前。

编辑:Apache 文档支持这一点。 事实上,他们特别提醒使用ServerAlias

 ServerName www.example.com ServerAlias example.com *.example.com