RE: [PHP-DB] RE: Getting apache to recognize"index.php"....
| From: | Nally, Tyler G. | Date: | Tue, 04 Dec 2001 16:40:25 +0000 |
| Subject: | RE: [PHP-DB] RE: Getting apache to recognize"index.php".... | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-14811@lists.php.net to get a copy of this message | ||
Luke M. said:
> Find the DIRECTORYINDEX attribute in httpd.conf and add 'index.php' to
> the list:
>
> DIRECTORYINDEX index.html index.php index.wml homepage.html
> index.shtml
> homepage.shtml index.cgi homepage.cgi index.htm \ Index.html
> Homepage.html Index.shtml Homepage.shtml Index.cgi Homepage.cgi
> Index.htm
Another thing to note... the closer to the beginning of the "DirectoryIndex"
directive, the higher the precedence it takes.
What that means is, a single directory can have any one of the
above files in it... the one that Apache will use *first* when accessing
the directory name is the one that it *matches* in the directoryindex
list *first*.
So, if for example, you have four files from the above mentioned list
(homepage.shtml, index.shtml, index.cgi, and index.php).. the one it'll
use first when deciding which one to run when just the "directory" is
accessed would be "index.php" because it's the second entry of the
list (above) and the first entry (index.html) doesn't exist in the
directory.
--
__ _ Tyler Nally
/ /__ ____ _(_)___ ____ ____ _________ _ tnally@legion.org
/ / _ \/ __
/ / __ \/ __ \ / __ \/ ___/ __ / 317-860-3016
/ / __/ /_/ / / /_/ / / / // /_/ / / / /_/ / American Legion Website
/_/\___/\__, /_/\____/_/ /_(_)____/_/ \__, / http://www.legion.org
/____/ /____/