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 |
|
# Apache 2.4 |
15 |
|
<RequireAny> |
16 |
|
Require ip 127.0.0.1 |
17 |
|
Require ip ::1 |
18 |
|
</RequireAny> |
19 |
|
</IfModule> |
20 |
|
<IfModule !mod_authz_core.c> |
21 |
|
# Apache 2.2 |
22 |
|
Order Deny,Allow |
23 |
|
Deny from All |
24 |
|
Allow from 127.0.0.1 |
25 |
|
Allow from ::1 |
26 |
|
</IfModule> |
27 |
|
</Directory> |
28 |
|
|
29 |
|
<Directory /usr/share/phpmyadmin/setup/> |
30 |
|
<IfModule mod_authz_core.c> |
31 |
|
# Apache 2.4 |
32 |
|
<RequireAny> |
33 |
|
Require ip 127.0.0.1 |
34 |
|
Require ip ::1 |
35 |
|
</RequireAny> |
36 |
|
</IfModule> |
37 |
|
<IfModule !mod_authz_core.c> |
38 |
|
# Apache 2.2 |
39 |
|
Order Deny,Allow |
40 |
|
Deny from All |
41 |
|
Allow from 127.0.0.1 |
42 |
|
Allow from ::1 |
43 |
|
</IfModule> |
44 |
</Directory> |
</Directory> |
45 |
|
|
46 |
# This directory does not require access over HTTP - taken from the original |
# This directory does not require access over HTTP - taken from the original |
47 |
# phpMyAdmin upstream tarball |
# phpMyAdmin upstream tarball |
48 |
# |
# |
49 |
<Directory /usr/share/phpmyadmin/libraries> |
<Directory /usr/share/phpmyadmin/libraries/> |
50 |
|
Order Deny,Allow |
51 |
|
Deny from All |
52 |
|
Allow from None |
53 |
|
</Directory> |
54 |
|
|
55 |
|
<Directory /usr/share/phpmyadmin/setup/lib/> |
56 |
|
Order Deny,Allow |
57 |
|
Deny from All |
58 |
|
Allow from None |
59 |
|
</Directory> |
60 |
|
|
61 |
|
<Directory /usr/share/phpmyadmin/setup/frames/> |
62 |
Order Deny,Allow |
Order Deny,Allow |
63 |
Deny from All |
Deny from All |
64 |
Allow from None |
Allow from None |
65 |
</Directory> |
</Directory> |
66 |
|
|
67 |
# This configuration prevents mod_security at phpmyadmin directories from |
# This configuration prevents mod_security at phpmyadmin directories from |
68 |
# filtering SQL etc. |
# filtering SQL etc. This may break your mod_security implementation. |
69 |
# |
# |
70 |
<IfModule mod_security.c> |
#<IfModule mod_security.c> |
71 |
<LocationMatch "/phpmyadmin/(.+)"> |
# <Directory /usr/share/phpmyadmin/> |
72 |
SecFilterInheritance Off |
# SecRuleInheritance Off |
73 |
</LocationMatch> |
# </Directory> |
74 |
</IfModule> |
#</IfModule> |