[Pkg-owncloud-commits] [owncloud-doc] 55/80: Updated to reflect NGINX Sendfile changes

David Prévot taffit at moszumanska.debian.org
Fri Jul 4 02:54:53 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud-doc.

commit 38b69e216759196106dd746361f078ea20431a5e
Author: josh4trunks <joshruehlig at gmail.com>
Date:   Fri Mar 21 11:37:14 2014 -0700

    Updated to reflect NGINX Sendfile changes
    
    Updated to reflect NGINX Sendfile changes committed [here](https://github.com/owncloud/core/pull/7838)
---
 admin_manual/configuration/xsendfile.rst | 32 +++++++++++++++++++++++++-------
 1 file changed, 25 insertions(+), 7 deletions(-)

diff --git a/admin_manual/configuration/xsendfile.rst b/admin_manual/configuration/xsendfile.rst
index bf6f3a3..f9a35b5 100644
--- a/admin_manual/configuration/xsendfile.rst
+++ b/admin_manual/configuration/xsendfile.rst
@@ -90,23 +90,41 @@ Configuration
 ~~~~~~~~~~~~~
 Configuration is similar to Apache::
 
-    location ~ \.php$ {
+    location ~ ^/(?:\.|config|db_structure\.xml|README) {
+        deny all;
+    }
+    
+    location ~ \.php(?:$|/) {
         ...
         fastcgi_param MOD_X_ACCEL_REDIRECT_ENABLED on;
     }
 
-    location ~ ^/home/valerio/(owncloud/)?data {
+    location ^~ /data {
         internal;
-        root /;
+        #alias /path/to/non-default/datadirectory;
+    
+    #    location ^~ /data/USER/files/local-mountpoint-foldername {
+    #        internal;
+    #        alias /path/to/local-mountpoint;
+    #    }
     }
 
 
-* **fastcgi_param MOD_X_ACCEL_REDIRECT_ENABLED:** tells ownCloud scripts that they should add the X-Accel-Redirect header when serving files
+* **deny all:** The '/data' folder must be removed from any deny blocks. This does not pose a security threat because '/data' can only be accessed by internal redirects.
+
+* **fastcgi_param MOD_X_ACCEL_REDIRECT_ENABLED:** Tells ownCloud scripts that they should add the X-Accel-Redirect header when serving files.
+
+* **internal location:** The data directory and any Local External Storage mounts must be added here.
 
-* **internal location:** each directory that contains local user data should correspond to an internal location. In the example uses the following directories:
+  * **/data:** ownCloud data directory
+  
+    * Set alias if you are using a non-default datadirectory.
+      
+  * **/data/USER/files/local-mountpoint-foldername:** a local external storage mount
+  
+    * Replace 'USER' with '(?:USER1|USER2)' for local mounts available to multiple users.
+    * Replace 'USER' with '[^/]+' for local mounts available to all users.
 
-  * **/home/valerio/owncloud/data**: ownCloud data directory
-  * **/home/valerio/data**: a local mount
 
 How to check if it's working?
 -----------------------------

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-doc.git



More information about the Pkg-owncloud-commits mailing list