[Pkg-owncloud-commits] [owncloud-doc] 59/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 8aa069ca57323993088660b93c22e96d7a51c72a
Author: josh4trunks <joshruehlig at gmail.com>
Date:   Fri Mar 21 16:24:36 2014 -0700

    Updated to reflect NGINX Sendfile changes
    
    Updated to reflect NGINX Sendfile changes owncloud/core#7838
---
 admin_manual/configuration/xsendfile.rst | 27 ++++++++++++++++++++-------
 1 file changed, 20 insertions(+), 7 deletions(-)

diff --git a/admin_manual/configuration/xsendfile.rst b/admin_manual/configuration/xsendfile.rst
index e97556e..cbf8c0e 100644
--- a/admin_manual/configuration/xsendfile.rst
+++ b/admin_manual/configuration/xsendfile.rst
@@ -89,23 +89,36 @@ Configuration
 ~~~~~~~~~~~~~
 Configuration is similar to Apache::
 
-    location ~ \.php$ {
+    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-FS-MOUNT-NAME {
+    #        alias /path/to/local-mountpoint;
+    #    }
+
+    #    location ~ ^/data/(?:USER1|USER2)/files/LOCAL-FS-MOUNT-NAME/(.+)$ {
+    #        alias /path/to/local-mountpoint/$1;
+    #    }
+
     }
 
 
-* **fastcgi_param MOD_X_ACCEL_REDIRECT_ENABLED:** tells ownCloud scripts that they should add the X-Accel-Redirect header when serving files
+* **fastcgi_param MOD_X_ACCEL_REDIRECT_ENABLED** ~ Tells ownCloud scripts that they should add the X-Accel-Redirect header when serving files.
+* **/data** ~ The ownCloud datadirectory.  Any Local File System External Storage Mounts must also have nested locations here.
+
+  * set alias if you are using a non-default datadirectory
+
+  * **/data/USER/files/LOCAL-FS-MOUNT-NAME** ~ a local fs external storage mount available to a single user
 
-* **internal location:** each directory that contains local user data should correspond to an internal location. In the example uses the following directories:
+  * **~ ^/data/(?:USER1|USER2)/files/LOCAL-FS-MOUNT-NAME/(.+)$** ~ a local fs external storage mount available to multiple users
 
-  * **/home/valerio/owncloud/data**: ownCloud data directory
-  * **/home/valerio/data**: a local mount
+    * Replace **(?:USER1|USER2)** with **[^/]+** for storage available to all users
 
 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