Наконец-то решил с коллегой.
По умолчанию DirectoryIndex, указанный в httpd.conf, у нас не работал.Даже если наша последовательность 'index.html', а затем 'index.php', Apache2 сначала выдаст index.php.Только когда «index.php» отсутствует в той же папке, «index.html» раздается.
Мы нашли 2 способа преодолеть это:
Предполагая, что ваш корень документа'/ var / www / html',
[Method 1]
1. Add a .htaccess to the root directory of your web app (e.g. /var/www/html/myapp).
2. Add the line 'DirectoryIndex index.html' to the .htaccess.
3. In httpd.conf, set 'AllowOverride' to 'All' under <Directory '/var/www/html'>.
[Method 2]
1. In httpd.conf, add 'DirectoryIndex index.html' under <Directory 'var/www/html'>.
(note: this 'DirectoryIndex' is different from the default DirectoryIndex that is
not enclosed within any tag.)
Перезагрузите веб-сервер.
Надеюсь, это кому-нибудь поможет.Спасибо!