Используя следующие сообщения:Apache2 на Ubuntu 14.04 не будет загружать index.php
- Ubuntu 14.04 apache2 configuration problems
- .htaccess file not working on Ubuntu 14.04 with apache2
- Apache doesn't execute script of index.php in root automatically
Я изменил мой /etc/apache2/apache2.conf
файл будет следующие:
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory
И я создал файл /var/www/html/.htaccess
быть следующим:
DirectoryIndex Index.php index.php Index.html index.html Index.htm index.htm
Когда я иду на мой сайт, страница по умолчанию по-прежнему (это работает!) Файл index.html.
Как настроить Apache для приоритета index.php?