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.sm...@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-unsubscr...@httpd.apache.org > " from the digest: users-digest-unsubscr...@httpd.apache.org > For additional commands, e-mail: users-h...@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-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org