summaryrefslogtreecommitdiffstats
path: root/horde.conf
blob: c8096a030bb659c5d153bbec34462ed785e1abd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Alias /horde /usr/share/horde

<Directory /usr/share/horde>
    # **IMPORTANT** By default, everyone accessing Horde is automatically logged
    # in as 'Administrator'. This is a security risk! It is very important that 
    # you change the authentication backend under the 'Authentication' tab. 
    # For this reason, Horde is currently only accessible from localhost. 

   <IfModule mod_authz_core.c>
     # Apache 2.4
     Require local
   </IfModule>
   <IfModule !mod_authz_core.c>
     # Apache 2.2
     Order Deny,Allow
     Deny from All
     Allow from 127.0.0.1
     Allow from ::1
   </IfModule>

   <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteCond   %{REQUEST_FILENAME}  !-d
      RewriteCond   %{REQUEST_FILENAME}  !-f
      RewriteRule ^(.*)$ rampage.php [QSA,L]
   </IfModule>
</Directory>

<Directory /usr/share/horde/config>
     Deny from all
</Directory>

<Directory /usr/share/horde/scripts>
     Deny from all
</Directory>

<Directory /usr/share/horde/locale>
     Deny from all
</Directory>

<Directory /usr/share/horde/lib>
     Deny from all
</Directory>

<Directory /usr/share/horde/templates>
     Deny from all
</Directory>

<Directory /usr/share/horde/rpc>
  <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond   %{REQUEST_FILENAME}  !-d
    RewriteCond   %{REQUEST_FILENAME}  !-f
    RewriteRule   ^(.*)$ index.php/$1 [QSA,L]
  </IfModule>
</Directory>