Merge branch '2013.10' into 2014.11
[tine20] / tine20 / docs / htaccess
1 DirectoryIndex index.php
2
3 <IfModule mod_php5.c>
4     php_value max_input_time 120
5     php_value session.gc_maxlifetime 86400
6     php_value memory_limit 128M
7     php_value upload_max_filesize 20M
8     php_value post_max_size 20M
9     php_value safe_mode off
10     php_flag display_errors off
11     php_flag log_errors on
12     php_flag magic_quotes_gpc off
13     php_flag magic_quotes_runtime off
14     php_flag register_globals off
15     php_value max_execution_time 90
16 </IfModule>
17
18 <IfModule mod_rewrite.c>
19     RewriteEngine on
20
21     # ActiveSync
22     RewriteRule ^Microsoft-Server-ActiveSync index.php?frontend=activesync         [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
23     
24     # OpenID
25     RewriteRule ^users/(.*)                  index.php?frontend=openid&username=$1 [L,QSA]
26
27     # WebDAV / CalDAV / CardDAV
28     RewriteCond %{REQUEST_METHOD} !^(GET|POST)$
29     RewriteRule ^$                           index.php?frontend=webdav             [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
30
31     RewriteRule ^addressbooks                index.php?frontend=webdav             [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
32     RewriteRule ^calendars                   index.php?frontend=webdav             [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
33     RewriteRule ^webdav                      index.php?frontend=webdav             [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
34     RewriteRule ^principals                  index.php?frontend=webdav             [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
35     RewriteRule ^remote.php                  index.php?frontend=webdav             [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
36     
37     # Anonymous downloads
38     RewriteRule ^download/get/(.*)           index.php?method=Download.downloadNode&path=$1 [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
39     RewriteRule ^download/show/(.*)          index.php?method=Download.displayNode&path=$1  [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]
40 </IfModule>
41
42 <IfModule mod_expires.c>
43     ExpiresActive on
44
45     ExpiresByType image/gif "access plus 1 month 1 days"
46     ExpiresByType image/jpeg "access plus 1 month 1 days"
47     ExpiresByType image/png "access plus 1 month 1 days" 
48 </IfModule>