Load default page

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Load default page

Post 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
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

Edit httpd.conf,
DirectoryIndex index.php foo.php whatever.html

...then restart Apache.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Moved to Miscellaneous - not a PHP question.

Mac
Post Reply