Why in the Apache2 settings specified root folder?

Explain please, why in /etc/apache2/sites-available/default specified root folder?

<directory>
 Options FollowSymLinks
 AllowOverride All
</directory>
 <directory var www>
 Options Indexes FollowSymLinks MultiViews
 AllowOverride All
 Order allow,deny</directory>


If I have a website in /var/www if I remove this block?
<directory>
 Options FollowSymLinks
 AllowOverride All
 </directory>
September 19th 19 at 13:00
2 answers
September 19th 19 at 13:02
And open the manual and read???
AllowOverride - This Directive can be set to None, i.e. to prevent the server from reading the file .htaccess. If it is installed on All server will allow all directives .htaccess file.

FollowSymLinks the server will follow symbolic links in this directory.

If you don't need it - remove
I asked why specified root folder? - wade commented on September 19th 19 at 13:05
: Because these permissions you give to the root folder. If you do not want to root, specify which.
BUT you need to understand that this is not the root of the drive and the root folder webсервера. Which is described in the config of Apache as the DocumentRoot
And read still the documentation for Apache. It is easy to read quickly. But will not have such issues - cullen.Jast40 commented on September 19th 19 at 13:08
September 19th 19 at 13:04
<directory></directory>

Find more questions by tags Apache