Forum archive
TurnKey LAMP: disable directory listing
Hello,
how to disable directory listing in Turnkey Apache server ?
httpd.conf in /etc/apache2 is empty so I have no idea how to fix.
There's a way to disable listing using webmin interface ?
EDIT
I did some modify in
APACHE WEBSERVER -> VIRTUAL SERVER OPTIONS -> DIRECTORY INDEXING
I have put * wildcard in
Files to ignore in directory index
This is the directive resultant
DocumentRoot /var/www/webapp
ServerName webapp.local.com
<Directory "/var/www/webapp">
allow from all
Options -Indexes
</Directory>
IndexOptions
IndexIgnore *
I have rebooted the server but the folders are still browsable.
Ok, found...
remove Idexes from /etc/apache2/sites-available/default