Re: Linux and Apache
| From: | Nick Eby | Date: | Fri, 22 Nov 2002 22:43:38 +0000 |
| Subject: | Re: Linux and Apache | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-125686@lists.php.net to get a copy of this message | ||
i think you have to have an Options directive set for a particular directory
to turn on or off the directory listing page. the particular feature in
question is called Indexes. check out this page for more info:
http://httpd.apache.org/docs/mod/core.html#options
for example, to disable indexes for the /web/docs folder and its subfolders
you'd use
<Directory /web/docs>
Options -Indexes
</Directory>
good luck
"Conbud" <conbudd@yahoo.com> wrote in message
news:20021122221123.20027.qmail@pb1.pair.com...
> 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
> I even tried my machine name but it all keeps blocking the images. My site
> has a dynamic IP so I cant set it to the IP, however I did set it to my IP
> at the time and it all worked great. Is there any other way I may be able
to
> do this, without just putting a "fake" index.php in all the directories I
> want to protect ?
>
> Im using Apache 2.0.43 on Mandrake 8.2
>
> - Lee
>
>