Parent Directory Index Of Private Images Install ★ Tested & Working

<FilesMatch "^(install|config|setup).*"> Require all denied </FilesMatch> Nginx does not enable autoindex by default, but if you have it on, turn it off.

location ^~ /private-images autoindex off; deny all; parent directory index of private images install

Options -Indexes To be extra safe, also block access to any file containing install or config : &lt;FilesMatch "^(install|config|setup)

location / autoindex off;