P
P
pridyrok2015-02-27 09:52:32
Apache HTTP Server
pridyrok, 2015-02-27 09:52:32

Why is the root folder specified in the Apache2 settings?

Please explain why /etc/apache2/sites-available/default has a root folder?

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

If my site is in /var/www , can I remove this block?
<Directory />
    Options FollowSymLinks
    AllowOverride All
  </Directory>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2015-02-27
@bk0011m

How about opening the manual and reading it?
AllowOverride - This directive can be set to None, i.e. so that the server does not read the .htaccess file. If it is set to All - the server will allow all directives of the .htaccess file.
FollowSymLinks - The server will follow symbolic links in this directory.
If you don't need it, delete it.

P
pridyrok, 2015-02-27
@pridyrok

<Directory />

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question