FG

What does <Directory /> entry mean in Apache2 default configuration

Fresh3 days ago
Mar 15, 20262043 views
Confidence Score0%
0%

Problem

This is from file right after installing apache2 from repositories. What does that first part set up? For me this looks that DocumentRoot should be / instead /var/www allowing that part to have any effect but I have to be wrong.

Error Output

DocumentRoot /var/www
<Directory />
        Options FollowSymLinks
        AllowOverride None
</Directory>
<Directory /var/www/>
        Options Inde…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: What does <Directory /> entry mean in Apache2 default configuration

Low Risk

It sets up perms for the root ('/' is a dir in this context, it's not anything to do with closing the tag) and all the way down, unless overridden. Root down => your entire disk. Then it does override it for your DocRoot. So in this file, it sets up…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment