更新时间:2023-02-23 13:08:26
的订单的定义目录索引的文件还确定其优先级。
The order of the defined 'directory index' files also determine their priority.
在您的情况,如果双方的 index.html的
和的index.php
是present, Apache会挑 index.html的
。
In your situation, if both an index.html
and a index.php
are present, Apache will pick the index.html
.
要改变这种情况,改变目录索引文件的顺序;
To change this, change the order of the 'directory index' files;
DirectoryIndex index.php index.html
在这里阅读文档:
Read the documentation here:
http://httpd.apache.org/docs/2.2/mod/mod_dir.html