No listing directory

From ClarolineDoc


Apache

If you see a list of files when you call a folder (by example http://localhost/claroline/inc/ ), you must modify Apache configuration (file httpd.conf) by deleting indexes in Options of Directory definition:

Replace :

Options FollowSymLinks Indexes

By :

Options FollowSymLinks 

Your httpd.conf looks like :

<Directory "D:/Program Files/EasyPHP/www/claroline/"> 
  Options FollowSymLinks 
  AllowOverride None 
  Order allow,deny
  allow from all 
</Directory>

Another solution is to use .htaccess. You can add a line in the .htaccess file located in your Claroline and add :

Options -Indexes

Microsoft Internet Information Services (IIs)

The following has been tested with IIs 5.1.

Listing directories should be disabled by default but if it is not the case, follow the next steps :

  • Open the MMC (Microsoft Management Console) - Control panel -> Administration tools -> IIs
  • Open the Default Web Site Properties
  • Go to the Base Directory panel
  • It should display a checkbox named Listing Directories. Uncheck it and Apply to prevent directory listing

(I use a french version of IIs so the names I give may not be exactly the same on english IIs)