Index Order

As I recall in previous incarnations of Apache the following line would determine which "page" was loaded first -- if there was an index.cfm and an index.php, index.cfm would load first.  I am not getting that in 2.0.53??  Is there something I am missing?

DirectoryIndex index.cfm index.html index.html.var index.php
Len45Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ahoffmannCommented:
should work
do you probably have no handler for the .cfm, or any other Alias?
0
Len45Author Commented:
That is the order I have them in in the conf file, I can call index.cfm and it runs fine
0
Sam PanwarSr. Server AdministratorCommented:
The DirectoryIndex directive sets the list of resources to look for, when the client requests an index of the directory by specifying a / at the end of the a directory name. Local-url is the (%-encoded) URL of a document on the server relative to the requested directory; it is usually the name of a file in the directory. Several URLs may be given, in which case the server will return the first one that it finds. If none of the resources exist and the Indexes  option is set, the server will generate its own listing of the directory.

Example:

    DirectoryIndex index.html

then a request for http://myserver/docs/ would return http://myserver/docs/index.html if it exists, or would list the directory if it did not.

Note that the documents do not need to be relative to the directory;

    DirectoryIndex index.html index.txt /cgi-bin/index.pl

USe the following steps:

Go to httpd.conf file
<IfModule mod_dir.c>
    DirectoryIndex index.cfm, index.php, index.cfm
</IfModule>

and add the default files that you want. Above I added  index.cfm .

Also note that after saving your changes to the httpd.conf file you must
restart apache to make them active.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

ahoffmannCommented:
Abs_jaipur, which part of your exhaustive description is not already covoured by the question?
I guess that Len45 already read the docs and restarted apache :)
0
Len45Author Commented:
"a" you be nice!  :-)

Mr. Abs -- no dice, I even removed index.php and it still is the default
0
Len45Author Commented:
Upping the Ante?
0
Len45Author Commented:
Somebody must have an idea?  Please -- a, sorry I told you to be nice... you are nice
0
ahoffmannCommented:
do you see anything in your access_log or error_log?
0
Len45Author Commented:
Nothing really in the logs... but I have been futzing with so much -- I have a new motherboard, wanted to install Centos 4.2 -- installed fine, but when I rebooted got kernal panic, same with FC 4 -- so reverted to FC and now trying to get BlueDragon JX 6.2, MySQL 5 and PHP 5 running... having to patch so much that I probably broke something
0
ahoffmannCommented:
> .. got kernal panic
hmm, sounds like you first need to fix basic problems ..
0
Len45Author Commented:
I did by going back to FC 3
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.