How can I view the default DirectoryIndex order? Is there a command I can run?

I'm on a shared web server so I can't view the configuration file. Is the default documented anywhere? My Google-fu is failing today.

1 Answer 1


The default value is documented here:


But, distributions may also provide their own defaults. For instance, Ubuntu 10.04 LTS has the following default:

DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm

(specified in /etc/apache2/mods-enabled/dir.conf)

If you don't have access to the configuration tree, there is no command you can run either. In that case, the best solution would be to just ask the administrator(s) of the server.

  • I completely missed that the default was listed there. I expected there to be more then just index.html.
    – Drazisil
    Oct 15, 2011 at 18:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.