[Pkg-owncloud-commits] [owncloud] 02/05: Update htaccess
David Prévot
taffit at moszumanska.debian.org
Sun Mar 29 00:57:47 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 6d78849d2dc372d7c13e097fe55af6ebef818a09
Author: David Prévot <taffit at debian.org>
Date: Sat Mar 28 12:41:38 2015 -0400
Update htaccess
---
debian/config/apache/htaccess | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/debian/config/apache/htaccess b/debian/config/apache/htaccess
index feeb931..cb55fba 100644
--- a/debian/config/apache/htaccess
+++ b/debian/config/apache/htaccess
@@ -11,7 +11,10 @@ php_value upload_max_filesize 513M
php_value post_max_size 513M
php_value memory_limit 512M
php_value mbstring.func_overload 0
-<IfModule env_module>
+php_value always_populate_raw_post_data -1
+php_value default_charset 'UTF-8'
+php_value output_buffering off
+<IfModule mod_env.c>
SetEnv htaccessWorking true
</IfModule>
</IfModule>
@@ -25,12 +28,14 @@ RewriteRule ^/owncloud/\.well-known/caldav /owncloud/remote.php/caldav/ [R]
RewriteRule ^/owncloud/apps/calendar/caldav\.php /owncloud/remote.php/caldav/ [QSA,L]
RewriteRule ^/owncloud/apps/contacts/carddav\.php /owncloud/remote.php/carddav/ [QSA,L]
RewriteRule ^/owncloud/remote/(.*) /owncloud/remote.php [QSA,L]
+RewriteRule ^/owncloud/(build|tests|config|lib|3rdparty|templates)/.* - [R=404,L]
+RewriteRule ^/owncloud/(\.|autotest|occ|issue|indie|db_|console).* - [R=404,L]
</IfModule>
<IfModule mod_mime.c>
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
</IfModule>
-<IfModule dir_module>
+<IfModule mod_dir.c>
DirectoryIndex index.php index.html
</IfModule>
AddDefaultCharset utf-8
@@ -38,3 +43,8 @@ Options -Indexes
<IfModule pagespeed_module>
ModPagespeed Off
</IfModule>
+<IfModule mod_headers.c>
+ <FilesMatch "\.(css|js)$">
+ Header set Cache-Control "max-age=7200, public"
+ </FilesMatch>
+</IfModule>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list