Protect folder on web server

General support questions
Post Reply
richarddru
Posts: 11
Joined: 2019/05/28 11:49:37

Protect folder on web server

Post by richarddru » 2019/06/09 10:26:31

Hello people
When installing Docker on a public server, the folder below is exposed, that is, you can access it directly: IP/icons

/var/lib/docker/overlay2/xxxxxxxxx/diff/usr/share/apache2/icons/

How do I block access to this folder?
I tried blocking with htaccess Options -Indexes, but it did not work.
Could someone give me a tip?
Thank you

richarddru
Posts: 11
Joined: 2019/05/28 11:49:37

Re: Protect folder on web server

Post by richarddru » 2019/06/10 19:31:21

I was able to identify where the blockade is.
The alias is inside this file:
/etc/httpd/conf.d/autoindex.conf

Post Reply