summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-04-12 13:47:07 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2012-04-13 09:01:33 +0100
commit77c298cca17f49f89c9b1a92f5f65f4c81aa62b9 (patch)
tree7114307d27ab50bf9a375cbcc6b010165b75c19e
parentbebbaa0846128ae66489a13f9b0aed7c31529d0d (diff)
downloadwebadmin-kolab-webadmin-2.4.0.tar.gz
Update kolab-webadmin.conf for httpdkolab-webadmin-2.4.0
-rw-r--r--doc/kolab-webadmin.conf16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/kolab-webadmin.conf b/doc/kolab-webadmin.conf
index 55bbaa1..26f24cd 100644
--- a/doc/kolab-webadmin.conf
+++ b/doc/kolab-webadmin.conf
@@ -12,6 +12,22 @@
Alias /kolab-webadmin /usr/share/kolab-webadmin/public_html/
<Directory "/usr/share/kolab-webadmin/public_html/">
+ <IfModule mod_rewrite.c>
+ RewriteEngine on
+ # NOTE: This needs to point to the base uri of your installation.
+ RewriteBase /kolab-webadmin/
+
+ # Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
+ RewriteCond %{REQUEST_FILENAME} !-f
+ RewriteCond %{REQUEST_FILENAME} !-d
+ RewriteCond %{REQUEST_URI} !=/favicon.ico
+ RewriteRule ^api/(.*)\.(.*)$ api/index.php?service=$1&method=$2 [L,QSA]
+
+ </IfModule>
+
+ AddDefaultCharset UTF-8
+ php_value error_reporting 6135
+
DirectoryIndex index.php
AllowOverride All
Order Allow,Deny