summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorMatej Cotman <cotman.matej@gmail.com>2015-01-21 22:47:28 +0100
committerMatej Cotman <cotman.matej@gmail.com>2015-01-21 22:49:22 +0100
commit3ed3977166344f0fcada575234f2939f925e34f1 (patch)
treee6688c2b2715cf6cf19a6e12db42aab4b06f68f4 /nixos
parent7494bd389e07835798281d90b1f18e6113205c1f (diff)
downloadnixlib-3ed3977166344f0fcada575234f2939f925e34f1.tar
nixlib-3ed3977166344f0fcada575234f2939f925e34f1.tar.gz
nixlib-3ed3977166344f0fcada575234f2939f925e34f1.tar.bz2
nixlib-3ed3977166344f0fcada575234f2939f925e34f1.tar.lz
nixlib-3ed3977166344f0fcada575234f2939f925e34f1.tar.xz
nixlib-3ed3977166344f0fcada575234f2939f925e34f1.tar.zst
nixlib-3ed3977166344f0fcada575234f2939f925e34f1.zip
owncloud: make .htaccess available
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/web-servers/apache-httpd/owncloud.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/services/web-servers/apache-httpd/owncloud.nix b/nixos/modules/services/web-servers/apache-httpd/owncloud.nix
index 0856f322f77c..3bea3c3ee1dd 100644
--- a/nixos/modules/services/web-servers/apache-httpd/owncloud.nix
+++ b/nixos/modules/services/web-servers/apache-httpd/owncloud.nix
@@ -352,6 +352,10 @@ rec {
       RewriteEngine On
       RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
       RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
+
+      <Directory ${pkgs.owncloud}>
+        ${builtins.readFile "${pkgs.owncloud}/.htaccess"}
+      </Directory>
     '';
 
   globalEnvVars = [