[Pkg-owncloud-commits] [owncloud-doc] 30/40: Backport #1320 to stable8.2
David Prévot
taffit at moszumanska.debian.org
Thu Dec 17 19:22:17 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v8.2.2RC1
in repository owncloud-doc.
commit 5a1d9b3eeb8a43cfd5a1d32fbd906c9b1cffc69d
Author: RealRancor <Fisch.666 at gmx.de>
Date: Thu Dec 10 11:34:44 2015 +0100
Backport #1320 to stable8.2
---
admin_manual/installation/nginx_configuration.rst | 24 +++++++++++++----------
1 file changed, 14 insertions(+), 10 deletions(-)
diff --git a/admin_manual/installation/nginx_configuration.rst b/admin_manual/installation/nginx_configuration.rst
index eda1d34..958782e 100644
--- a/admin_manual/installation/nginx_configuration.rst
+++ b/admin_manual/installation/nginx_configuration.rst
@@ -61,31 +61,35 @@ Nginx Configuration
# This module is currently not supported.
#pagespeed off;
- rewrite ^/caldav(.*)$ /remote.php/caldav$1 redirect;
- rewrite ^/carddav(.*)$ /remote.php/carddav$1 redirect;
- rewrite ^/webdav(.*)$ /remote.php/webdav$1 redirect;
-
index index.php;
error_page 403 /core/templates/403.php;
error_page 404 /core/templates/404.php;
+ rewrite ^/.well-known/carddav /remote.php/carddav/ permanent;
+ rewrite ^/.well-known/caldav /remote.php/caldav/ permanent;
+
+ # The following 2 rules are only needed for the user_webfinger app.
+ # Uncomment it if you're planning to use this app.
+ #rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
+ #rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last;
+
location = /robots.txt {
allow all;
log_not_found off;
access_log off;
}
- location ~ ^/(?:\.htaccess|data|config|db_structure\.xml|README){
+ location ~ ^/(build|tests|config|lib|3rdparty|templates|data)/ {
+ deny all;
+ }
+
+ location ~ ^/(?:\.|autotest|occ|issue|indie|db_|console) {
deny all;
}
location / {
- # The following 2 rules are only needed with webfinger
- rewrite ^/.well-known/host-meta /public.php?service=host-meta last;
- rewrite ^/.well-known/host-meta.json /public.php?service=host-meta-json last;
- rewrite ^/.well-known/carddav /remote.php/carddav/ redirect;
- rewrite ^/.well-known/caldav /remote.php/caldav/ redirect;
+ rewrite ^/remote/(.*) /remote.php last;
rewrite ^(/core/doc/[^\/]+/)$ $1/index.html;
--
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