Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 3 down vote accepted

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.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.

share|improve this answer
I completely missed that the default was listed there. I expected there to be more then just index.html. – Drazisil Oct 15 '11 at 18:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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