.htaccess 1.4 KB

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