httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Smith, Cathy" <cathy.sm...@pnnl.gov>
Subject RE: [users@httpd] Problem with disabling directory listing
Date Fri, 01 Jul 2011 21:12:37 GMT
Adding -Indexes didn't work either.


Cathy

---
Cathy L. Smith
IT Engineer

Pacific Northwest National Laboratory
Operated by Battelle for the
U.S. Department of Energy

Phone:  509.375.2687
Fax:        509.375.2330
Email:     cathy.smith@pnl.gov


-----Original Message-----
From: Voellinger, Sandy [mailto:Sandy.Voellinger@neustar.biz] 
Sent: Friday, July 01, 2011 10:50 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Problem with disabling directory listing

Try doing the following:


<Directory "/var/www/">
    Options -Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

Change /var/www/ to the doc root of your apache server .

Cheers-
Sandy


On Jul 1, 2011, at 1:27 PM, Smith, Cathy wrote:

> Hi
> 
> I'm having a problem disabling directory listing for my DocumentRoot.  I've taken out
the Indexes parameter for Options, and I'm still able to list the directory.  Here is the
section from the httpd.conf.  I'd appreciate it if someone could tell me what I need to do
differently.  This is a RHEL5 box running Apache 2.2.3.
> 
> <Directory />
>    Options FollowSymLinks
>    AllowOverride None
>    Order Deny,Allow
>    Deny from all
> </Directory>
> #
> #
> <Directory "/var/www/html">
>    Options FollowSymLinks
>    AllowOverride None
>    Order Deny,Allow
>    Allow from all
> </Directory>
> 
> 
> Thank you.
> 
> 
> Regards,
> 
> 
> Cathy
> ---
> Cathy L. Smith
> IT Engineer
> 
> Pacific Northwest National Laboratory
> Operated by Battelle for the
> U.S. Department of Energy
> 
> Phone:  509.375.2687
> Fax:        509.375.2330
> Email:     cathy.smith@pnl.gov
> 
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message