summaryrefslogtreecommitdiffstats
path: root/horde.conf
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-11-04 14:55:37 +0100
committerRemi Collet <fedora@famillecollet.com>2012-11-04 14:55:37 +0100
commit4f9e8bb26c0a6a2e6fe60414c6c820858062c554 (patch)
tree46abeb407f6219ff147d3c45eb6b6565365ce8bf /horde.conf
php-horde-horde: mew package
Diffstat (limited to 'horde.conf')
-rw-r--r--horde.conf57
1 files changed, 57 insertions, 0 deletions
diff --git a/horde.conf b/horde.conf
new file mode 100644
index 0000000..c8096a0
--- /dev/null
+++ b/horde.conf
@@ -0,0 +1,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>
+