# Each directory to which Apache has access, can be configured with respect
# to which services and features are allowed and/or disabled in that
-# directory (and its subdirectories).
+# directory (and its subdirectories).
-# First, we configure the "default" to be a very restrictive set of
-# permissions.
+# First, we configure the "default" to be a very restrictive set of
+# permissions.
<Directory />
Options FollowSymLinks
AllowOverride None
- Order deny,allow
- Deny from all
+ <IfModule mod_access.c>
+ Order deny,allow
+ Deny from all
+ </IfModule>
</Directory>
+# These should be changed to whatever You set DocumentRoot to.
DocumentRoot "/home/services/apache/html"
-# This should be changed to whatever you set DocumentRoot to.
<Directory "/home/services/apache/html">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
- Order allow,deny
- Allow from all
+ <IfModule mod_access.c>
+ Order allow,deny
+ Allow from all
+ </IfModule>
</Directory>
-<Files ~ "^\.ht">
- Order allow,deny
- Deny from all
- Satisfy All
-</Files>
+<IfModule mod_access.c>
+ <Files ~ "^\.ht">
+ Order allow,deny
+ Deny from all
+ Satisfy All
+ </Files>
+</IfModule>
# vim: filetype=apache ts=4 sw=4 et