At 23:11 22.11.2002, conbud said:
--------------------[snip]--------------------
>Hi. I spent the last 3 days looking through the apache docs to figure out
>how to disable directory listing. I can disable the directory listing to my
>images folder but then all the images on the site dont work. I tried using
>Allow from mydomain
>and
>Allow from localhost
>Allow from 127.0.0.1
--------------------[snip]-------------------- 

"Allow" specifies who can _read_ the folder and has nothing to do with
sending a directory listing or not.

 From the Apache FAQ, paragraph 19:
    http://httpd.apache.org/docs/misc/FAQ-E.html#indexes

--------------------[quote]-------------------- 
How do I turn automatic directory listings on or off? 
If a client requests a URL that designates a directory and the directory
does not contain a filename that matches the DirectoryIndex directive, then
mod_autoindex can be configured to present a listing of the directory contents.
To turn on automatic directory indexing, find the Options directive that
applies to the directory and add the Indexes keyword. For example:
<Directory /path/to/directory>
    Options +Indexes
</Directory> 
To turn off automatic directory indexing, remove the Indexes keyword from
the appropriate Options line. To turn off directory listing for a
particular subdirectory, you can use Options -Indexes. For example:
<Directory /path/to/directory>
    Options -Indexes
</Directory> 
--------------------[/quote]-------------------- 

To disable indexing completely, simply omit the "Indexes" option on the
document root directory.

What happens if e.g. the /images/ directory is accessed, a "Forbidden"
response is sent:

---------------------------------
Forbidden
You don't have permission to access /images/ on this server.
---------------------------------


-- 
   >O     Ernest E. Vogelsinger
   (\)    ICQ #13394035
    ^     http://www.vogelsinger.at/



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to