PDA

View Full Version : index.html


tejas
6th May 2005, 09:03 AM
Um, this is a bit hard to explain, so I'll illustrate with an example

Lets say I type in http://kopete.kde.org on the 'go' bar on mozilla firefox,

then the browser redirects me to the file
http://kopete.kde.org/index.html,
and displays this file.

Theoretically, kopete.kde.org should be a folder somewhere on the kde.org server which contains a html document called index.html.

How do I view the contents of this folder without being redirected to the silent /index.html?

bitrain
6th May 2005, 09:15 AM
Have you tried getting the file on your harddrive with wget or kget or something similar?

raghavendra
6th May 2005, 09:23 AM
Hi
I think this will happen because of the directory index they would have configured
For example..............On my server I have configured Apache as

DirectoryIndex index.php index index.html index.html.var

So whenever you visit
http://raghu.homelinux.com/drupal/
it will be directed to
http://raghu.homelinux.com/drupal/index.php

So you will not be able to view the directories as long as I dont remove it..................Maybe there might be other ways around.

bitrain
6th May 2005, 09:38 AM
@raghavendra, yes you're right.

The directory can't be viewed if you configure apache like that.

tejas
6th May 2005, 10:03 AM
Tried kget, wget, ...

anyway, if websites have protection against this kind of stuff I guess there isn't much you can do.

But there isn't a way to avoid the redirection?

AndyGreen
6th May 2005, 10:14 AM
For subdirs, simply not having an index.html or similar file in the subdir will allow virtual directory listing. For the toplevel dir IIRC apache will show the Fedora default page if there is no better page to show. This stuff is actually a security feature.

bitrain
6th May 2005, 10:18 AM
But there isn't a way to avoid the redirection?If the server is setup like raghavendra said, then no. When you ask apache to server you the directory it automatically gives you the file wich comes first in DirectoryIndex (if it exists, else it goes searching the others).

You can only view that directory if you are:
- logged in with ssh, ftp, or others (and you have got permission)
- you hack the server and then log in
- a php/perl/... file lists all files in a directory

tejas
6th May 2005, 11:01 AM
OK, no problem, didn't need it anyway, just curious about the stuff sites don't want you to download off them. Oh well, no harm done.

Ramen Tenma - Black Store Travel Photos - City of Dixon, CA Instagram Photos