update nginx subdir config to properly resolve oc(m|s)-provider

signed-off-by Bernhard Ostertag <bernio.github@gmx.de>

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
This commit is contained in:
BernieO
2019-03-03 07:44:35 +01:00
committed by GitHub
parent 0232831d26
commit 83bb1aa353

View File

@@ -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;
}