Subversion Repositories configs

Rev

Rev 168 | Details | Compare with Previous | 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
186 - 16
     Require local
168 - 17
   </IfModule>
18
   <IfModule !mod_authz_core.c>
19
     # Apache 2.2
20
     Order Deny,Allow
21
     Deny from All
22
     Allow from 127.0.0.1
23
     Allow from ::1
24
     Allow from 10.192.25.0/24
25
   </IfModule>
26
</Directory>
27
 
28
<Directory /usr/share/phpMyAdmin/setup/>
29
   <IfModule mod_authz_core.c>
30
     # Apache 2.4
186 - 31
     Require local
168 - 32
   </IfModule>
33
   <IfModule !mod_authz_core.c>
34
     # Apache 2.2
35
     Order Deny,Allow
36
     Deny from All
37
     Allow from 127.0.0.1
38
     Allow from ::1
39
   </IfModule>
40
</Directory>
41
 
42
# These directories do not require access over HTTP - taken from the original
43
# phpMyAdmin upstream tarball
44
#
45
<Directory /usr/share/phpMyAdmin/libraries/>
186 - 46
    <IfModule mod_authz_core.c>
47
      # Apache 2.4
48
      Require all denied
49
    </IfModule>
50
    <IfModule !mod_authz_core.c>
51
      # Apache 2.2
52
      Order Deny,Allow
53
      Deny from All
54
      Allow from None
55
    </IfModule>
168 - 56
</Directory>
57
 
186 - 58
<Directory /usr/share/phpMyAdmin/templates/>
59
    <IfModule mod_authz_core.c>
60
      # Apache 2.4
61
      Require all denied
62
    </IfModule>
63
    <IfModule !mod_authz_core.c>
64
      # Apache 2.2
65
      Order Deny,Allow
66
      Deny from All
67
      Allow from None
68
    </IfModule>
69
</Directory>
70
 
168 - 71
<Directory /usr/share/phpMyAdmin/setup/lib/>
186 - 72
    <IfModule mod_authz_core.c>
73
      # Apache 2.4
74
      Require all denied
75
    </IfModule>
76
    <IfModule !mod_authz_core.c>
77
      # Apache 2.2
78
      Order Deny,Allow
79
      Deny from All
80
      Allow from None
81
    </IfModule>
168 - 82
</Directory>
83
 
84
<Directory /usr/share/phpMyAdmin/setup/frames/>
186 - 85
    <IfModule mod_authz_core.c>
86
      # Apache 2.4
87
      Require all denied
88
    </IfModule>
89
    <IfModule !mod_authz_core.c>
90
      # Apache 2.2
91
      Order Deny,Allow
92
      Deny from All
93
      Allow from None
94
    </IfModule>
168 - 95
</Directory>
96
 
97
# This configuration prevents mod_security at phpMyAdmin directories from
98
# filtering SQL etc.  This may break your mod_security implementation.
99
#
100
#<IfModule mod_security.c>
101
#    <Directory /usr/share/phpMyAdmin/>
102
#        SecRuleInheritance Off
103
#    </Directory>
104
#</IfModule>