File tree 7 files changed +7
-213
lines changed
7 files changed +7
-213
lines changed Original file line number Diff line number Diff line change 1
1
# With Apache 2.4 the "Order, Deny" syntax has been deprecated and moved from
2
2
# module mod_authz_host to a new module called mod_access_compat (which may be
3
- # disabled) and a new "Require" syntax has been introduced to mod_authz_host .
3
+ # disabled) and a new "Require" syntax has been introduced to mod_authz_core .
4
4
# We could just conditionally provide both versions, but unfortunately Apache
5
5
# does not explicitly tell us its version if the module mod_version is not
6
6
# available. In this case, we check for the availability of module
7
7
# mod_authz_core (which should be on 2.4 or higher only) as a best guess.
8
8
<IfModule mod_version.c >
9
9
<IfVersion < 2.4 >
10
- <Files "*" >
11
- Order Allow ,Deny
12
- Deny from All
13
- </Files >
10
+ Order Allow ,Deny
11
+ Deny from All
14
12
</IfVersion >
15
13
<IfVersion >= 2.4 >
16
- <Files "*" >
17
- Require all denied
18
- </Files >
14
+ Require all denied
19
15
</IfVersion >
20
16
</IfModule >
21
17
<IfModule !mod_version.c >
22
18
<IfModule !mod_authz_core.c >
23
- <Files "*" >
24
- Order Allow ,Deny
25
- Deny from All
26
- </Files >
19
+ Order Allow ,Deny
20
+ Deny from All
27
21
</IfModule >
28
22
<IfModule mod_authz_core.c >
29
- <Files "*" >
30
- Require all denied
31
- </Files >
23
+ Require all denied
32
24
</IfModule >
33
25
</IfModule >
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments