Two ways to do it.

touch index.html

This will create an empty index file. 

The other way is to look in: /etc/httpd/conf/httpd.conf 
and look for the "Options" directive.

and remove the "Indexes" option

-- 

The answer to the meaning of life:
perl -e 'print$i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10); '

On Tue, 20 Jun 2000, Mark Lo wrote:

> Date: Tue, 20 Jun 2000 10:13:02 +0800
> From: Mark Lo <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: redhat user list <[EMAIL PROTECTED]>
> Subject: Disable Directory listing in Apache
> Resent-Date: 20 Jun 2000 02:46:41 -0000
> Resent-From: [EMAIL PROTECTED]
> Resent-cc: recipient list not shown: ;
> 
> Hi,
> 
>         I would like to know how to disable directory listing for my
> Apache server.  What i mean is that I have some files under /gen
> directory.  I can browse all the files under that directory by using
> "www.domain.com/gen".  I wouldn't like to show all of my files.
> 
> Thank you
> 
> Mark
> 
> 
> 


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to