Often, you don't want your website users to browse the whole content of a public folder.
This can be achieved in different ways. For example modifying the apache configuration file directly or trough the .htaccess.
Here today we quickly explain the first method.
So, open your apache configuration file for the website you want to amend. Where it is depend on your linux distribution.
In Ubuntu Lucid it's in: "/etc/apache/sites-enabled/website_name".
Open the file as administrator with your favorite editor and look for something like:
<Directory /home/andrea/www/project_name/trunk/public/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory>
and remove the option "Indexes" so that the config file will look like:
<Directory /home/andrea/www/project_name/trunk/public/> Options FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory>
Now you just need to restart your apache server to reload your new configuration file.
In Ubuntu it's done with:
sudo /etc/init.d/apache2 restart