6 |
# dangerous unless properly secured by SSL |
# dangerous unless properly secured by SSL |
7 |
|
|
8 |
Alias /phpmyadmin /usr/share/phpmyadmin |
Alias /phpmyadmin /usr/share/phpmyadmin |
9 |
|
|
10 |
<Directory /usr/share/phpmyadmin/> |
<Directory /usr/share/phpmyadmin/> |
11 |
order deny,allow |
AddDefaultCharset UTF-8 |
12 |
deny from all |
|
13 |
allow from 127.0.0.1 |
<IfModule mod_authz_core.c> |
14 |
|
<RequireAny> |
15 |
|
Require ip 127.0.0.1 |
16 |
|
Require ip ::1 |
17 |
|
</RequireAny> |
18 |
|
</IfModule> |
19 |
|
</Directory> |
20 |
|
|
21 |
|
<Directory /usr/share/phpmyadmin/setup/> |
22 |
|
<IfModule mod_authz_core.c> |
23 |
|
<RequireAny> |
24 |
|
Require ip 127.0.0.1 |
25 |
|
Require ip ::1 |
26 |
|
</RequireAny> |
27 |
|
</IfModule> |
28 |
</Directory> |
</Directory> |
29 |
|
|
30 |
# This directory does not require access over HTTP - taken from the original |
# This directory does not require access over HTTP - taken from the original |
31 |
# phpMyAdmin upstream tarball |
# phpMyAdmin upstream tarball |
32 |
# |
# |
33 |
<Directory /usr/share/phpmyadmin/libraries> |
<Directory /usr/share/phpmyadmin/libraries/> |
34 |
|
Order Deny,Allow |
35 |
|
Deny from All |
36 |
|
Allow from None |
37 |
|
</Directory> |
38 |
|
|
39 |
|
<Directory /usr/share/phpmyadmin/setup/lib/> |
40 |
|
Order Deny,Allow |
41 |
|
Deny from All |
42 |
|
Allow from None |
43 |
|
</Directory> |
44 |
|
|
45 |
|
<Directory /usr/share/phpmyadmin/setup/frames/> |
46 |
Order Deny,Allow |
Order Deny,Allow |
47 |
Deny from All |
Deny from All |
48 |
Allow from None |
Allow from None |
49 |
</Directory> |
</Directory> |
50 |
|
|
51 |
# This configuration prevents mod_security at phpmyadmin directories from |
# This configuration prevents mod_security at phpmyadmin directories from |
52 |
# filtering SQL etc. |
# filtering SQL etc. This may break your mod_security implementation. |
53 |
# |
# |
54 |
<IfModule mod_security.c> |
#<IfModule mod_security.c> |
55 |
<LocationMatch "/phpmyadmin/(.+)"> |
# <Directory /usr/share/phpmyadmin/> |
56 |
SecFilterInheritance Off |
# SecRuleInheritance Off |
57 |
</LocationMatch> |
# </Directory> |
58 |
</IfModule> |
#</IfModule> |