I want apache2 to host home.php or whatever I choose as the start page instead of index.html. Everything I have read says to edit the DirectoryIndex parameter of the httpd.conf file. I do not have that file anywhere. (I searched.)
I also did not have an .htaccess file by default. I created one and put the line DirectoryIndex home.php in it; I then restarted apache. Nothing chaged.
This is in my apache2.conf file.
<Directory /var/www/html>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
I am not sure what Options Indexes FollowSymLinks does.
These are the file contents of my /var/www/html/.htaccess.
<Directory /var/www/html>
DirectoryIndex home.php
</Directory>
When I change AllowOverride to All I receive a server error.
Thanks.
.htaccessfiles. Your directiveDirectoryIndex home.phpshould work. Are you sure thatAllowOverrideinhttpd.confin set for this virtual host?Options Indexes FollowSymLinkswithDirectoryIndex home.php.