apache tutorial - Disable Directory Listing Apache - apache - apache web server - apache server - apache2
How to disable Directory Listing in Apache ?
- If your document root directory does not have an index file, by default your apache web server will show all the content of the document root directory.
![Disable Directory Listing](https://wikitechy.com/tutorials/apache/img/apache-images/disable-directory-listing.jpg)
Learn Apache - Apache tutorial - Disable Directory Listing - Apache examples - Apache programs
- This feature could be turn off for a specific directory through “options directive” available in the Apache configuration file.
<Directory /var/www/html>
Options -Indexes
</Directory>
click below button to copy the code. By Apache tutorial team
![Disable Directory Listing in Apache](https://wikitechy.com/tutorials/apache/img/apache-images/disable-directory-listing-in-apache.png)
Learn Apache - Apache tutorial - Disable Directory Listing in Apache - Apache examples - Apache programs