You are here
Don Zauker - Tue, 2013/04/23 - 13:39
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.
Forum:
Found !
Ok, found...
remove Idexes from /etc/apache2/sites-available/default
Glad you got it sorted...
For future reference Apache config is layed out a little different in Debian (and Ubuntu etc) than it is as per Apache documentation (and RHEL based distros). Whilst httpd.conf is still passed, Apache conf is broken up into separate files in Debian (which personally I think makes it make easier to work with...).
The conf files are all still in /etc/apache2 but they are (OTTOMH):
Add new comment