Is the Apache Directory
directive supposed to be relative to the DocumentRoot or not? I ask in the context of a VirtualHost, but it shouldn't make any difference.
In other words, is it supposed to be:
<VirtualHost>
DocumentRoot /var/www
<Directory /var/www>
...
or
<VirtualHost>
DocumentRoot /var/www
<Directory />
...
Both work. The Apache Directory docs say:
Directory-path is either the full path to a directory, or a wild-card string...
... but then they show two examples contradicting the "full path" statement.
ED: There are also contradictory examples on the Apache Performance Tuning page in the FollowSymLinks and SymLinksIfOwnerMatch and AllowOverride sections.
For fun I looked at Debian's default vhost setup and found this:
<VirtualHost *:80>
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>
...