Options -Indexes should work to prevent directory listings.
If you are using a .htaccess file make sure you have at least the “allowoverride options” setting in your main apache config file.
More Related Contents:
- Tips for debugging .htaccess rewrite rules
- htaccess redirect to https://www
- How to Set AllowOverride all
- How do I disable directory browsing?
- .htaccess rewrite subdomain to directory
- How to prevent http file caching in Apache httpd (MAMP)
- .htaccess: Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration
- Deny access to one specific folder in .htaccess
- Redirect site with .htaccess but exclude one folder
- Hidden features of mod_rewrite
- .htaccess redirect http to https
- How to debug .htaccess RewriteRule not working
- Forbidden You don’t have permission to access / on this server [closed]
- .htaccess rewrite query string as path
- How to redirect URLs based on query string?
- mod_rewrite: remove trailing slash (only one!)
- What is .htaccess file?
- Laravel Routes not working, Apache configuration only allows for public/index.php/route
- Remove Characters from URL with htaccess
- CSS, JS and images do not display with pretty url
- mod_rewrite: remove query string from URL?
- How to manually generate pages in Nuxt router with a 404 page fallback for .htaccess
- .htaccess 301 redirect for all https to http EXCEPT ONE PAGE
- Rewrite Problem – L(ast) not being respected?
- Difference between $1 vs %1 in .htaccess
- How can I mod_rewrite and keep query strings?
- Configure apache on elastic beanstalk
- Custom 404 error issues with Apache – the ErrorDocument is 404 as well
- Set Content-Disposition header to attachment only on files in a certain directory?
- AH10411 error: Managing spaces and %20 in apache mod_rewrite