Page 1 of 1

Load default page

Posted: Fri Jan 16, 2004 3:31 am
by anjanesh
How do I get the default page (index or default or main) , (.htm or .php) to load when we enter localhost/anjanesh in IE ? index/main/default .htm/.php all exist in anjanesh folder but when I enter localhost/anjanesh it shows the Index of /anjanesh

C:\Program Files\Apache Group\Apache2\htdocs\Anjanesh exits and is the default

I don't want others to know what the contents of the folder are though they are publically accessible.

Thanks

Posted: Fri Jan 16, 2004 4:19 am
by markl999
Edit httpd.conf,
DirectoryIndex index.php foo.php whatever.html

...then restart Apache.

Posted: Fri Jan 16, 2004 6:12 am
by twigletmac
Moved to Miscellaneous - not a PHP question.

Mac