Magellan Linux

Annotation of /trunk/phpmyadmin/phpmyadmin.conf

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3376 - (hide annotations) (download)
Wed Jul 31 09:41:07 2019 UTC (4 years, 9 months ago) by niro
File size: 1320 byte(s)
-added missing TempDir declaration
1 niro 250 # 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 niro 2692
10 niro 250 <Directory /usr/share/phpmyadmin/>
11 niro 2692 AddDefaultCharset UTF-8
12    
13     <IfModule mod_authz_core.c>
14     <RequireAny>
15     Require ip 127.0.0.1
16     Require ip ::1
17     </RequireAny>
18     </IfModule>
19 niro 250 </Directory>
20    
21 niro 2692 <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>
29    
30 niro 250 # This directory does not require access over HTTP - taken from the original
31     # phpMyAdmin upstream tarball
32     #
33 niro 2692 <Directory /usr/share/phpmyadmin/libraries/>
34 niro 250 Order Deny,Allow
35     Deny from All
36     Allow from None
37     </Directory>
38    
39 niro 2692 <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
47     Deny from All
48     Allow from None
49     </Directory>
50    
51 niro 250 # This configuration prevents mod_security at phpmyadmin directories from
52 niro 2692 # filtering SQL etc. This may break your mod_security implementation.
53 niro 250 #
54 niro 2692 #<IfModule mod_security.c>
55     # <Directory /usr/share/phpmyadmin/>
56     # SecRuleInheritance Off
57     # </Directory>
58     #</IfModule>