[packages/owncloud: 2/2] Config for apache and basic config for lighttpd
wiget
wiget at pld-linux.org
Thu Aug 30 15:53:19 CEST 2012
commit 7d467cd038a80a57c060e17e40f72df7051ff97b
Author: Artur Frysiak <artur at frysiak.net>
Date: Thu Aug 30 15:48:53 2012 +0200
Config for apache and basic config for lighttpd
owncloud.spec | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
---
diff --git a/owncloud.spec b/owncloud.spec
index 78baf2e..2974490 100644
--- a/owncloud.spec
+++ b/owncloud.spec
@@ -63,6 +63,23 @@ ownCloud server on their devices.
cat > apache.conf <<'EOF'
Alias /%{name} %{_appdir}
<Directory %{_appdir}>
+ ErrorDocument 403 /%{name}/core/templates/403.php
+ ErrorDocument 404 /%{name}/core/templates/404.php
+ <IfModule mod_php5.c>
+ php_value upload_max_filesize 512M
+ php_value post_max_size 512M
+ php_value memory_limit 512M
+ </IfModule>
+ <IfModule mod_rewrite.c>
+ RewriteEngine on
+ RewriteRule .* - [env=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
+ RewriteRule ^.well-known/host-meta /%{name}/public.php?service=host-meta [QSA,L]
+ RewriteRule ^.well-known/carddav /%{name}/remote.php/carddav/ [R]
+ RewriteRule ^.well-known/caldav /%{name}/remote.php/caldav/ [R]
+ RewriteRule ^apps/([^/]*)/(.*\.(css|php))$ index.php?app=$1&getfile=$2 [QSA,L]
+ RewriteRule ^remote/(.*) remote.php [QSA,L]
+ </IfModule>
+ Options -Indexes
Allow from all
</Directory>
EOF
@@ -71,6 +88,9 @@ cat > lighttpd.conf <<'EOF'
alias.url += (
"/%{name}" => "%{_appdir}",
)
+$HTTP["url"] =~ "^/%{name}($|/)" {
+ dir-listing.activate = "disable"
+}
EOF
# remove bundled 3rdparty libs
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/owncloud.git/commitdiff/7d467cd038a80a57c060e17e40f72df7051ff97b
More information about the pld-cvs-commit
mailing list