Currently, I use a PHP script to list the contents of a directory that does not have an index file, but I don’t want to have to copy it to every directory without an index.
Can Apache do it automatically?
Edit: after searching more i found a way which is to put Option -Indexes and then use that php file as a custom 403 page. source: https://stackoverflow.com/a/10988954/649239
after searching more i found a way which is to put Option -Indexes and then use that php file as a custom 403 page.