Setting the DirectoryIndex for Apache2 in Linux can be done editing the following configuration file.
nano /etc/apache2/sites-available/default
Look for the following block of text and add the DirectoryIndex line shown in blue.
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
DirectoryIndex index.php index.html index.htm
</Directory>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
DirectoryIndex index.php index.html index.htm
</Directory>
s/Linux/debian-based distros that are using the default configuration/
Post a Comment