You can fix it by changing the line to:
<LocationMatch "^/*$>
On the other hand, if youc an guess the name of any directory without
it's own index.html file, you'll still get a listing. If you're worried
about people seeing your directories, you should turn off the feature
entirely.
tfm (at) tfm (dot) org [email concealed] wrote:
....
> ==============================================
>>From /etc/httpd/conf/httpd.conf
> #
> # Disable autoindex for the root directory, and present a
> # default Welcome page if no other index page is present.
> #
> <LocationMatch "^/$>
> Options -Indexes
> ErrorDocument 403 /error/noindex.html
> </LocationMatch>
> ==============================================
....
>
> It's true if you made a request like
>
> GET / HTTP/1.0
>
> Not true if you type:
>
> GET // HTTP/1.0
--
Stephen Samuel +1(604)876-0426 samuel (at) bcgreen (dot) com [email concealed]
http://www.bcgreen.com/~samuel/
Powerful committed communication. Transformation touching
the jewel within each person and bringing it to light.
<LocationMatch "^/*$>
On the other hand, if youc an guess the name of any directory without
it's own index.html file, you'll still get a listing. If you're worried
about people seeing your directories, you should turn off the feature
entirely.
tfm (at) tfm (dot) org [email concealed] wrote:
....
> ==============================================
>>From /etc/httpd/conf/httpd.conf
> #
> # Disable autoindex for the root directory, and present a
> # default Welcome page if no other index page is present.
> #
> <LocationMatch "^/$>
> Options -Indexes
> ErrorDocument 403 /error/noindex.html
> </LocationMatch>
> ==============================================
....
>
> It's true if you made a request like
>
> GET / HTTP/1.0
>
> Not true if you type:
>
> GET // HTTP/1.0
--
Stephen Samuel +1(604)876-0426 samuel (at) bcgreen (dot) com [email concealed]
http://www.bcgreen.com/~samuel/
Powerful committed communication. Transformation touching
the jewel within each person and bringing it to light.
[ reply ]