Short and to the point
Saturday, October 9, 2010
Apache2 - DirectoryIndex
Setting the DirectoryIndex for Apache2 in Linux can be done editing the following configuration file.
Look for the following block of text and add the DirectoryIndex line shown in blue.
Options Indexes FollowSymLinks MultiViews
allow from all
DirectoryIndex index.php index.html index.htm
The file names are in order of priority. So in this example, index.php will be shown before index.html if both files exists in the same directory for the website.
Note: I am using
, you may also use
depending on your preference and Linux distro.
Share to Twitter
Share to Facebook
s/Linux/debian-based distros that are using the default configuration/
January 11, 2011 at 3:02 PM
Post a Comment