summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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