Discussion:
Disable directory listing
(too old to reply)
nonoleta7
2016-07-27 20:27:00 UTC
Permalink
My Apache conf is set to listing directories if index.html does not exist.

How to disable sub-directory from listing files?
Options ???

What is the syntax of .htaccess?
Do I need to restart httpd after add/modifying .htaccess?

TIA
James
Kees Nuyt
2016-07-27 23:51:25 UTC
Permalink
On Wed, 27 Jul 2016 13:27:00 -0700 (PDT), nonoleta7
Post by nonoleta7
My Apache conf is set to listing directories if index.html does not exist.
How to disable sub-directory from listing files?
Put an index.html in the sub-directory (untested) or disable the
option.
Post by nonoleta7
Options ???
A .htaccess with the automatic directory listing disabled in every
sub-directory.
Post by nonoleta7
What is the syntax of .htaccess?
Options -Indexes
Post by nonoleta7
Do I need to restart httpd after add/modifying .htaccess?
I think .htaccess is evaluated on every access of the directoy
it's in, so a restart wouldn't be required.
Post by nonoleta7
TIA
James
HTH
--
Kees Nuyt
Continue reading on narkive:
Loading...