From 83bb1aa353ba200d04373be85791cc8c4b89eaa9 Mon Sep 17 00:00:00 2001 From: BernieO Date: Sun, 3 Mar 2019 07:44:35 +0100 Subject: [PATCH] update nginx subdir config to properly resolve oc(m|s)-provider MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit signed-off-by Bernhard Ostertag After upgrading to 15.0.5 this is shown in the Admin-panel: ``` Your web server is not properly set up to resolve “/ocm-provider/”. This is most likely related to a web server configuration that was not updated to deliver this folder directly. Please compare your configuration against the shipped rewrite rules in “.htaccess” for Apache or the provided one in the documentation for Nginx at it’s documentation page 1. On Nginx those are typically the lines starting with “location ~” that need an update. Your web server is not properly set up to resolve “/ocs-provider/”. This is most likely related to a web server configuration that was not updated to deliver this folder directly. Please compare your configuration against the shipped rewrite rules in “.htaccess” for Apache or the provided one in the documentation for Nginx at it’s documentation page 1. On Nginx those are typically the lines starting with “location ~” that need an update. ``` I think for runnning nextcloud in a subdirectory of webroot, this rewrite has to be added to the nignx configuration when running nextcloud in a subdirectory of webroot --- admin_manual/installation/nginx.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin_manual/installation/nginx.rst b/admin_manual/installation/nginx.rst index 112801367..39bb9969e 100644 --- a/admin_manual/installation/nginx.rst +++ b/admin_manual/installation/nginx.rst @@ -255,7 +255,7 @@ your nginx installation. location = /.well-known/caldav { return 301 $scheme://$host/nextcloud/remote.php/dav; } - location ~/(ocm-provider|ocs-provider)/ { + location ~ ^\/(?:ocm-provider|ocs-provider).* { rewrite ^ /nextcloud$request_uri; }