Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

In a Apache server, if a domain www.abc.com has index.php, index.htm and index.html, which files get processed first when I enter www.abc.com in the address bar? Is there a way to change the order? I know we can do it in IIS.

share|improve this question

migrated from stackoverflow.com Apr 21 '11 at 3:09

3 Answers

The order is specified by the DirectoryIndex directive.

share|improve this answer
any idea where would i change the directory index in cpanel – Prady Apr 19 '11 at 8:28
3  
No, Apache configs are way too simple for me to fork out $500 a year for a GUI. – Quentin Apr 19 '11 at 8:36

The order of the entries in the DirectoryIndex directive determine which is looked at first.

share|improve this answer

Look up "DirectoryIndex"

share|improve this answer

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.