<p>In the server configuration file, put</p>
<highlight language="config">
-<Directory />
+<Directory "/">
AllowOverride None
</Directory>
</highlight>
configuration:</p>
<highlight language="config">
-<Directory />
+<Directory "/">
Require all denied
</Directory>
</highlight>
allow access only in those areas you wish. For example,</p>
<highlight language="config">
-<Directory /usr/users/*/public_html>
+<Directory "/usr/users/*/public_html">
Require all granted
</Directory>
-<Directory /usr/local/httpd>
+<Directory "/usr/local/httpd">
Require all granted
</Directory>
</highlight>
<p>Pay particular attention to the interactions of <directive
module="core">Location</directive> and <directive
module="core">Directory</directive> directives; for instance, even
- if <code><Directory /></code> denies access, a <code>
- <Location /></code> directive might overturn it.</p>
+ if <code><Directory "/"></code> denies access, a <code>
+ <Location "/"></code> directive might overturn it.</p>
<p>Also be wary of playing games with the <directive
module="mod_userdir">UserDir</directive> directive; setting it to