[thelist] Simple Apache question
Seb Barre
sebastien at oven.com
Fri Nov 10 10:13:46 CST 2000
At 04:52 PM 11/9/2000 -0600, you wrote:
>If a directory doesn't contain an index.html file, the browser will
>automatically display the contents of that directory when the url is
>just plain http://blah/path/
>
>How do I disable this option so that the contents of the directory are
>not revealed?
First question would be do you have access to the configuration files?
I will assume you don't since that's the case with most people.
If you have access control rights to your directory (with .htaccess files
usually), you should be able to modify the options for that directory (all
all directories under it, so drop the file in your web root if you want
this to be the rule for your whole site).
In the .htaccess file, you will want to put the following line:
Options -Indexes
You can append this to any other lines if you have the file already.
That will disable the option to display a directory index (since it appears
to be enabled by default).
If you DO have access to the main configuration files, you can locate the
<Directory> block for the directory or path you want to modify and remove
the "Indexes" option from the Options line.
--- -- -
Seb Barre - seb at oven.com
OVEN Digital Toronto
Work: 416-595-9750 x 222
Mobile: 416-254-5078
http://www.oven.com/
More information about the thelist
mailing list