Web Servers General Talk - how to pull up index page

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers General Talk > January 2005 > how to pull up index page





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author how to pull up index page
s

2005-01-16, 5:54 pm

When my website is accessed it shows Index of/ and lists all the pages.
How do I get it to go dircetly to the index page? I have tried
C:/Program Files/Apache Group/Apache2/htdocs/index.htm and C:/Program
Files/Apache Group/Apache2/htdocs for my directory files and neither
work. Any help would be appreciated.

Tim

2005-01-16, 8:47 pm

On 16 Jan 2005 09:42:01 -0800,
"s" <sabrenael@netscape.net> posted:

> When my website is accessed it shows Index of/ and lists all the pages.
> How do I get it to go dircetly to the index page? I have tried
> C:/Program Files/Apache Group/Apache2/htdocs/index.htm and C:/Program
> Files/Apache Group/Apache2/htdocs for my directory files and neither
> work. Any help would be appreciated.


By default, Apache usually will look for a file called "index.html" in a
directory if you don't ask for a specific page in the URI.

You can change the storage directory, and the default file name, if you
like, in the Apache configuration file. Personally, I dislike calling a
file "index.something-or-other" if it's not really an *index*, and I
dislike serving public documents from somewhere in the middle of the
programs directories (if someone does discover a directory traversal
exploit, it's probably best that your documents aren't served from a
location that they know about - so they can't easily find what they're
looking for to hack you).

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please delete some files yourself.
s

2005-01-17, 7:48 am

thanks for the tips, i will give them a try

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com