[Pkg-owncloud-commits] [SCM] owncloud.git branch, master, updated. debian/4.0.2debian-1-1-gd149290

Paul van Tilburg paulvt at debian.org
Sun Jun 17 12:41:34 UTC 2012


The following commit has been merged in the master branch:
commit d149290d7e6e2fce4b05899ee0a1c912a901ef69
Author: Paul van Tilburg <paulvt at debian.org>
Date:   Sun Jun 17 14:41:32 2012 +0200

    Add and install a lighttpd configuration example

diff --git a/debian/changelog b/debian/changelog
index 1b6d9cc..644001c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+owncloud (4.0.2debian-2) UNRELEASED; urgency=low
+
+  * debian/config/lighttpd, debian/owncloud.examples:  add and install
+    lighttpd example config file.
+
+ -- Paul van Tilburg <paulvt at debian.org>  Sun, 17 Jun 2012 14:39:50 +0200
+
 owncloud (4.0.2debian-1) unstable; urgency=high
 
   * New upstream bugfix release.
diff --git a/debian/config/lighttpd/owncloud.conf b/debian/config/lighttpd/owncloud.conf
new file mode 100644
index 0000000..d09e444
--- /dev/null
+++ b/debian/config/lighttpd/owncloud.conf
@@ -0,0 +1,14 @@
+# Make ownCloud reachable under /owncloud
+alias.url += ( "/owncloud/" => "/var/lib/owncloud/" )
+
+# Taken from http://owncloud.org/support/distro-notes, section "lighttpd":
+# As .htaccess files are ignored by lighttpd, you have to secure the /data
+# folder by yourself, otherwise your owncloud.db database and user data is
+# puplicly readable even if directory listing is off. 
+$HTTP["url"] =~ "^/owncloud/data/" {
+        url.access-deny = ("")
+}
+
+$HTTP["url"] =~ "^/owncloud($|/)" {
+        dir-listing.activate = "disable"
+}
diff --git a/debian/owncloud.examples b/debian/owncloud.examples
new file mode 100644
index 0000000..2f8736f
--- /dev/null
+++ b/debian/owncloud.examples
@@ -0,0 +1 @@
+debian/config/lighttpd

-- 
owncloud.git



More information about the Pkg-owncloud-commits mailing list