Magellan Linux

Contents of /trunk/phpmyadmin/phpmyadmin.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2692 - (show annotations) (download)
Tue Sep 8 10:28:01 2015 UTC (8 years, 7 months ago) by niro
File size: 1616 byte(s)
-updated to work with apache-2.4
1 # phpmyadmin - Web based MySQL browser written in php
2 #
3 # Allows only localhost by default
4 #
5 # But allowing phpmyadmin to anyone other than localhost should be considered
6 # dangerous unless properly secured by SSL
7
8 Alias /phpmyadmin /usr/share/phpmyadmin
9
10 <Directory /usr/share/phpmyadmin/>
11 AddDefaultCharset UTF-8
12
13 <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>
45
46 # This directory does not require access over HTTP - taken from the original
47 # phpMyAdmin upstream tarball
48 #
49 <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
63 Deny from All
64 Allow from None
65 </Directory>
66
67 # This configuration prevents mod_security at phpmyadmin directories from
68 # filtering SQL etc. This may break your mod_security implementation.
69 #
70 #<IfModule mod_security.c>
71 # <Directory /usr/share/phpmyadmin/>
72 # SecRuleInheritance Off
73 # </Directory>
74 #</IfModule>