Subversion Repositories configs

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

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