change nginx-config for subdir to resolve /ocm-provider properly

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.
```
I think for runnning nextcloud in a subdirectory of webroot, this redirect has to be added to the configuration
signed-off by bernieo.github@gmx.de
This commit is contained in:
BernieO
2019-02-28 17:33:22 +01:00
committed by GitHub
parent 1636ab4d12
commit 71bc6e6ab7

View File

@@ -255,6 +255,9 @@ your nginx installation.
location = /.well-known/caldav {
return 301 $scheme://$host/nextcloud/remote.php/dav;
}
location ~/(ocm-provider|ocs-provider)/ {
return 301 $scheme://$host/nextcloud/$1/;
}
location /.well-known/acme-challenge { }