This is from file /etc/apache2/sites-enabled/000-default right after installing apache2 from repositories.
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
What does that first part set up? For me this looks that DocumentRoot should be / instead /var/www allowing that <Directory /> part to have any effect but I have to be wrong.
<Directory /var/www/>Options FollowSymlinks and AllowOverride None are redudant? And the reason why those options are set in<Directory />is becouse there are symlinks enabled and it is possible to "break out" from /var/www folder? – Joni Sep 29 '10 at 19:00