Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

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.

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
add comment

Your Answer

 
discard

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.