.htaccess 1.4 KB
Newer Older
1
2
3
4
5
6
7
8
<IfModule mod_fcgid.c>
<IfModule mod_setenvif.c>
<IfModule mod_headers.c>
SetEnvIfNoCase ^Authorization$ "(.+)" XAUTHORIZATION=$1
RequestHeader set XAuthorization %{XAUTHORIZATION}e env=XAUTHORIZATION
</IfModule>
</IfModule>
</IfModule>
9
<IfModule mod_php5.c>
Robin Appelman's avatar
Robin Appelman committed
10
11
php_value upload_max_filesize 513M
php_value post_max_size 513M
12
php_value memory_limit 512M
13
php_value mbstring.func_overload 0
Stefan Göckeritz's avatar
Stefan Göckeritz committed
14
15
16
<IfModule env_module>
  SetEnv htaccessWorking true
</IfModule>
17
</IfModule>
18
<IfModule mod_rewrite.c>
19
RewriteEngine on
20
RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
21
22
23
RewriteRule ^\.well-known/host-meta /public.php?service=host-meta [QSA,L]
RewriteRule ^\.well-known/host-meta\.json /public.php?service=host-meta-json [QSA,L]
RewriteRule ^\.well-known/carddav /remote.php/carddav/ [R]
Felix Eckhofer's avatar
Felix Eckhofer committed
24
RewriteRule ^\.well-known/caldav /remote.php/caldav/ [R]
25
26
RewriteRule ^apps/calendar/caldav\.php remote.php/caldav/ [QSA,L]
RewriteRule ^apps/contacts/carddav\.php remote.php/carddav/ [QSA,L]
27
RewriteRule ^remote/(.*) remote.php [QSA,L]
28
</IfModule>
29
30
31
32
<IfModule mod_mime.c>
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
</IfModule>
33
34
35
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>
36
AddDefaultCharset utf-8
37
Options -Indexes
Thomas Müller's avatar
Thomas Müller committed
38
39
40
<IfModule pagespeed_module>
        ModPagespeed Off
</IfModule>
41
42
43
44
45
<IfModule mod_headers.c>
  <FilesMatch ".(css|js)$">
    Header set Cache-Control "max-age=7200, public"
  </FilesMatch>
</IfModule>