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.

link|improve this question
feedback

1 Answer

up vote 3 down vote accepted

The default value is documented here:

http://httpd.apache.org/docs/2.0/mod/mod_dir.html#directoryindex

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.

link|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
feedback

Your Answer

 
or
required, but never shown

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