1
使用以下职位:的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?