deal with different httpd versions and different configurations.</p>
<highlight language="config">
-<IfVersion >= 2.1>
+<IfVersion >= 2.4>
# this happens only in versions greater or
- # equal 2.1.0.
+ # equal 2.4.0.
</IfVersion>
</highlight>
<highlight language="config">
<Files private.html>
- Order allow,deny
- Deny from all
+ Require all denied
</Files>
</highlight>
<highlight language="config">
<Directory /var/web/dir1>
<Files private.html>
- Order allow,deny
- Deny from all
+ Require all denied
</Files>
</Directory>
</highlight>
<highlight language="config">
<LocationMatch ^/private>
- Order Allow,Deny
- Deny from all
+ Require all denied
</Location>
</highlight>
at once:</p>
<highlight language="config">
<FilesMatch \.(?i:gif|jpe?g|png)$>
- Order allow,deny
- Deny from all
+ Require all denied
</FilesMatch>
</highlight>
<highlight language="config">
<Location /dir/>
- Order allow,deny
- Deny from all
+ Require all denied
</Location>
</highlight>
<highlight language="config">
<Proxy http://www.example.com/*>
- Order allow,deny
- Deny from all
+ Require all granted
</Proxy>
</highlight>
</section>
<highlight language="config">
<Location />
- Order deny,allow
- Allow from all
+ Require all granted
</Location>
# Woops! This <Directory> section will have no effect
<Directory />
- Order allow,deny
- Allow from all
- Deny from badguy.example.com
+ <RequireAll>
+ Require all granted
+ Require not host badguy.example.com
+ </RequireAll>
</Directory>
</highlight>