DirectoryIndex index.html overruled by index.php

2004-10-15

When building a site in PHP, you might want to put an index.html up to keep unwanted eyes away from your new site. The index.html however is overruled by index.php. Here’s how to fix this.

The file /etc/httpd/conf.d/php.conf contains the directive to add index.php to the DirectoryIndex. This directive overrules the previous made directive which contains the index.html. Simply add index.htm and/or index.html in front of index.php, this will look something like:

DirectoryIndex index.html index.htm index.php index.php3

Now restart apache and you’re all done.

apacheplesk
Creative Commons License

Adding SPF records in Plesk

Guur sings on IRC