Apache - DocumentRoot & <Directory>

Apache, Lighttpd, nginx, Cherokee
Post Reply
flolein
Posts: 113
Joined: 2003-12-11 14:47
 

Apache - DocumentRoot & <Directory>

Post by flolein »

Wenn DocumentRoot z.B. auf /var/www gesetzt ist, ist dann trotzdem noch ein Abschnitt à la

Code: Select all

<Directory />
    Options None
    AllowOverride None
    Order Deny,Allow
    Deny from All
</Directory>
nötig? Falls ja, warum? :) Oberhalb von DocumentRoot hat Apache doch eigentlich gar nichts zu suchen...
oxygen
Posts: 2138
Joined: 2002-12-15 00:10
Location: Bergheim
 

Re: Apache - DocumentRoot & <Directory>

Post by oxygen »

Als zusätzliche Sicherheit okay. So kann man verhindern das ein Verzeichnis außerhalb des DocumentRoot z.B. per Alias eingebunden wird.
Post Reply