<IfModule dir_module> DirectoryIndex index.html index.php </IfModule> 当http请求路径不是具体文件名称,而是/结尾的时候,默认访问DirectoryIndex指定的文件。