I am serving a documantation database and link a directory-listing which are located outside of the main directory. Like:
Apache main directory: /var/www/
Files: /scratch/files/
I added the "/scratch/files" in the conf as a directory and in order to view the directories as built-in directory listing. Now I want to protect the parent folders in directory-listing by adding .htaccess files into the linked directory.
This doesn't work because "/scratch/files" is not located in "/var/www".
What would be the easiest/best solution to fix this?