[Date Prev][Date
Next][Thread Prev][Thread Next][Date
Index][Thread Index]
Re: [OT] Apache Help
That would be DirectoryIndex. For example, Mandrake's default Apache
configuration comes with:
<IfModule mod_dir.c>
DirectoryIndex index.html index.php index.php3 index.shtml index.cgi
index.pl index.htm Default.htm default.htm
</IfModule>
in /etc/httpd/conf/commonhttpd.conf
Depending on the system you are using, your configuration files may be
elsewhere and this directive may be in httpd.conf.
Incidentally, for future reference, knowing that index.html worked, a quick
way to find what it was in the configuration files that pointed to this
would be to do:
grep -r "index.html" /etc/httpd/conf/*
Again, substituting the location of apache's configuration files on your
system. Of course, I am assuming you are running apache on *nix for grep to
be available.
Cheers,
Bruno
Alex Monaghan wrote:
> I was stuck for hours yesterday evening on this (I can do it in IIS,
but
> can't figure out or find it in Apache). I've looked through all the
webmin
> options and can't see anything, I've also had a look on the Apache web
> site's FAQ.
>
> How can I set the default page ? If I create an index.html it
displays, if I
> remove it and replace with index.php, I get a directory listing (on my
own
> internal server so not a problem). How can I set Apache to decide that
it
> should display the index.php ?
>
> I guess I've missed something obvious :-)
Home |
Main Index |
Thread Index
|