[Pkg-owncloud-commits] [owncloud-doc] 56/80: Revert "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 ab59375d53d3ef26810ea46d00b115dbdaeb53b4
Author: josh4trunks <joshruehlig at gmail.com>
Date: Fri Mar 21 12:51:32 2014 -0700
Revert "Updated to reflect NGINX Sendfile changes"
This reverts commit 38b69e216759196106dd746361f078ea20431a5e.
---
admin_manual/configuration/xsendfile.rst | 32 +++++++-------------------------
1 file changed, 7 insertions(+), 25 deletions(-)
diff --git a/admin_manual/configuration/xsendfile.rst b/admin_manual/configuration/xsendfile.rst
index f9a35b5..bf6f3a3 100644
--- a/admin_manual/configuration/xsendfile.rst
+++ b/admin_manual/configuration/xsendfile.rst
@@ -90,41 +90,23 @@ Configuration
~~~~~~~~~~~~~
Configuration is similar to Apache::
- location ~ ^/(?:\.|config|db_structure\.xml|README) {
- deny all;
- }
-
- location ~ \.php(?:$|/) {
+ location ~ \.php$ {
...
fastcgi_param MOD_X_ACCEL_REDIRECT_ENABLED on;
}
- location ^~ /data {
+ location ~ ^/home/valerio/(owncloud/)?data {
internal;
- #alias /path/to/non-default/datadirectory;
-
- # location ^~ /data/USER/files/local-mountpoint-foldername {
- # internal;
- # alias /path/to/local-mountpoint;
- # }
+ root /;
}
-* **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.
+* **fastcgi_param MOD_X_ACCEL_REDIRECT_ENABLED:** tells ownCloud scripts that they should add the X-Accel-Redirect header when serving files
- * **/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.
+* **internal location:** each directory that contains local user data should correspond to an internal location. In the example uses the following directories:
+ * **/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