From c9d5bbb6653e9bedbf259216b72517ae613ed5507df0dc470528f2a12796485d Mon Sep 17 00:00:00 2001
From: Eric Schirra <ecsos@schirra.net>
Date: Tue, 27 Nov 2018 23:06:38 +0000
Subject: [PATCH] Accepting request 652246 from home:ecsos:server

- Fix warning for /.well-known/{caldav,carddav} in overview
  security & setup warning.

OBS-URL: https://build.opensuse.org/request/show/652246
OBS-URL: https://build.opensuse.org/package/show/server:php:applications/nextcloud?expand=0&rev=60
---
 apache_secure_data | 3 +++
 nextcloud.changes  | 6 ++++++
 2 files changed, 9 insertions(+)

diff --git a/apache_secure_data b/apache_secure_data
index 8b5fbf7..c73e8be 100644
--- a/apache_secure_data
+++ b/apache_secure_data
@@ -20,3 +20,6 @@ Alias /nextcloud "@DATAPATH@/"
   # just in case if .htaccess gets disabled
   Require all denied
 </Directory>
+
+Redirect 301 /.well-known/carddav /nextcloud/remote.php/dav
+Redirect 301 /.well-known/caldav /nextcloud/remote.php/dav
diff --git a/nextcloud.changes b/nextcloud.changes
index 9f06a5f..f1b9839 100644
--- a/nextcloud.changes
+++ b/nextcloud.changes
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Tue Nov 27 22:51:28 UTC 2018 - ecsos@opensuse.org
+
+- Fix warning for /.well-known/{caldav,carddav} in overview 
+  security & setup warning.
+
 -------------------------------------------------------------------
 Thu Nov 22 16:56:26 UTC 2018 - ecsos@opensuse.org