Advertisement
Guest User

htaccess default owncloud 7

a guest
Dec 3rd, 2014
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  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.  
  42. ErrorDocument 403 /owncloud/core/templates/403.php
  43. ErrorDocument 404 /owncloud/core/templates/404.php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement