Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Linux directory listing disable when no index.html?

5 views
Skip to first unread message

Don

unread,
Oct 31, 2009, 12:12:43 PM10/31/09
to
How do I disable linux directory listing when there is no index.html?

Unruh

unread,
Oct 31, 2009, 12:44:52 PM10/31/09
to
Don <n...@adr.com> writes:

>How do I disable linux directory listing when there is no index.html?

You will have to expand on this, as it makes no sense as it stands. directory
listing how, on what? What does index.html have to do with anything?

HASM

unread,
Oct 31, 2009, 8:15:41 PM10/31/09
to
Don <n...@adr.com> writes:

> How do I disable linux directory listing when there is no index.html?

If we're talking Apache server running on Linux use
Options -Indexes
on an .htaccess at the top of each hierarchy you don't want that to happen,
or in the <Directory> sections of httpd.conf

-- HASM

Don

unread,
Nov 1, 2009, 12:01:04 AM11/1/09
to
Hasm,

Thanks for your reply. It's a Red Hat Linux system. Any idea how to prevent a directory listing with that? I tried the htaccess file with Options -Index thing but it didn't work.

Don

HASM

unread,
Nov 3, 2009, 12:11:39 AM11/3/09
to
Don <n...@adr.com> writes:

> I tried the htaccess file with Options -Index thing but it didn't work.

Look for the AllowOverride directive for the <Directory> hierarchy in
question in /etc/httpd/conf/httpd.conf. You probably have an "AllowOverride
None" somewhere and may need to change that to "AllowOverride Indexes", plus
whatever else you want to allow.

-- HASM

0 new messages