• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 256
  • Last Modified:

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
0
Len45
Asked:
Len45
  • 6
  • 4
2 Solutions
 
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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 6
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now