How to disable Directory listing in Apache Virtual Web Server?
<h1>Apache Virtual Web Server</h1>
Note : Make sure to include index.html in every sub-directory under Document root in http.conf
You can disable directory listing by simply making use of -Indexes in <Directory> such as follows :
< Directory "/home/www/*" >
...
...
...
Options MultiViews -Indexes SymLinksIfOwnerMatch IncludesNoExec
After you have made the changes, make sure to restart Apache or you will receive a 403 Access Denied message.
|