Kaip išjungti aplankų peržiūrą apache2 serveryje (ubuntu/debian)
Kaip išjungti aplankų peržiūrą (directory indexing) apache2 serveryje (tikrintas Debian, Ubuntu serveriuose). Atidarome konfigūracinį faila:
#sudo nano /etc/apache2/sites-enabled/000-default
Susirandame Indexes parametrą ir pakeičiame jį su minuso ženklu, taip „-Indexes“:
<VirtualHost *> ServerAdmin webmaster@localhost DocumentRoot /var/www/ <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> Options -Indexes FollowSymLinks MultiViews ....
Restartuojame Apache
#sudo /etc/init.d/apache2 reload