# Your web server is not properly set up to resolve "/ocm-provider/"

**URL:** <https://help.nextcloud.com/t/your-web-server-is-not-properly-set-up-to-resolve-ocm-provider/48530>\
**Category:** ℹ️ Support\
**Tags:** nc15\
**Created:** [February 28, 2019, 3:13pm UTC](https://help.nextcloud.com/t/your-web-server-is-not-properly-set-up-to-resolve-ocm-provider/48530 "2019-02-28T15:13:11Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![scgf](https://help.nextcloud.com/letter_avatar/scgf/32/5_5575768a8748004e209b776fc1b2916d.png) [@scgf](https://help.nextcloud.com/u/scgf)\
**Post date:** [February 28, 2019, 3:13pm UTC](https://help.nextcloud.com/t/your-web-server-is-not-properly-set-up-to-resolve-ocm-provider/48530/1 "2019-02-28T15:13:11Z")

</div>

I’ve just updated my NextCloud installation from 15.0.4 to 15.0.5 and have encountered an issue. This is what I see in settings/overview:

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](https://docs.nextcloud.com/server/15/go.php?to=admin-nginx). On Nginx those are typically the lines starting with “location ~” that need an update.

I get another similar message about /occ-provider/

I run NextCloud on my Synology DS218+ NAS - a direct install, not a docker or snap image. I’ve looked at the configuration documentation but it doesn’t relate to my Diskstation installation at all.

I did not get these errors when I upgraded to 15.0.4.

Can anyone help me to rectify the problem, please? Thank you!

Phillip

---

<div class="post-metadata">

**Author:** ![Bernie\_O](https://help.nextcloud.com/user_avatar/help.nextcloud.com/bernie_o/32/40181_2.png) [@Bernie\_O](https://help.nextcloud.com/u/Bernie_O)\
**Post date:** [February 28, 2019, 4:21pm UTC](https://help.nextcloud.com/t/your-web-server-is-not-properly-set-up-to-resolve-ocm-provider/48530/2 "2019-02-28T16:21:09Z")

</div>

I had the same problem. I suppose you are running nextcloud in a subdirectory of webroot (like I am)?

If yes: adding these lines to your nginx configuration right after the location blocks with the `/.well-known/[...]` redirects made the warning in the admin page disappear (replace `[NEXTCLOUD]` with the subdirectory where nextcloud resides):

```auto
location ~ /(ocm-provider|ocs-provider)/ {
    return 301 $scheme://$host/[NEXTCLOUD]/$1/;
}

```

Don’t forget to tell nginx to reload the changed configuration afterwards with:  
`nginx -s reload`

---

<div class="post-metadata">

**Author:** ![scgf](https://help.nextcloud.com/letter_avatar/scgf/32/5_5575768a8748004e209b776fc1b2916d.png) [@scgf](https://help.nextcloud.com/u/scgf)\
**Post date:** [February 28, 2019, 4:28pm UTC](https://help.nextcloud.com/t/your-web-server-is-not-properly-set-up-to-resolve-ocm-provider/48530/3 "2019-02-28T16:28:30Z")

</div>

Thank you. Where is the nginx configuration file? I see the .htaccess file, but it has a warning ‘do not change anything above this line’ right near the end of the file.

Thank you!

---

<div class="post-metadata">

**Author:** ![Bernie\_O](https://help.nextcloud.com/user_avatar/help.nextcloud.com/bernie_o/32/40181_2.png) [@Bernie\_O](https://help.nextcloud.com/u/Bernie_O)\
**Post date:** [February 28, 2019, 4:31pm UTC](https://help.nextcloud.com/t/your-web-server-is-not-properly-set-up-to-resolve-ocm-provider/48530/4 "2019-02-28T16:31:38Z")

</div>

How did you install nextcloud?  
Usually it is under `/etc/nginx/sites-available/`

Actually: do you use Apache or nginx? I supposed nginx because the link you posted brought me to the nginx documentation page, but you didn’t write it.

---

<div class="post-metadata">

**Author:** ![scgf](https://help.nextcloud.com/letter_avatar/scgf/32/5_5575768a8748004e209b776fc1b2916d.png) [@scgf](https://help.nextcloud.com/u/scgf)\
**Post date:** [February 28, 2019, 4:44pm UTC](https://help.nextcloud.com/t/your-web-server-is-not-properly-set-up-to-resolve-ocm-provider/48530/5 "2019-02-28T16:44:37Z")

</div>

These are the instructions I followed and NextCloud has been working perfectly up to 15.0.5. It still works, but I am concerned at the messages I referenced in my post.

> **[Install Nextcloud on Synology NAS Diskstation DSM 6 |](https://luvis.se/software/install-nextcloud-on-synology-dsm-6/)**
>
> Hopefully this method should cover most details needed for a basic installation of nextcloud on a synology diskstation dsm 6. If you know something that might be helpful don't hesitate to tell me. Btw this tutorial should work for owncloud as well....

---

<div class="post-metadata">

**Author:** ![scgf](https://help.nextcloud.com/letter_avatar/scgf/32/5_5575768a8748004e209b776fc1b2916d.png) [@scgf](https://help.nextcloud.com/u/scgf)\
**Post date:** [February 28, 2019, 4:57pm UTC](https://help.nextcloud.com/t/your-web-server-is-not-properly-set-up-to-resolve-ocm-provider/48530/6 "2019-02-28T16:57:34Z")

</div>

In /etc/nginx I have ‘sites-enabled’ which is an empty directory. No ‘sites-available’.

---

<div class="post-metadata">

**Author:** ![Bernie\_O](https://help.nextcloud.com/user_avatar/help.nextcloud.com/bernie_o/32/40181_2.png) [@Bernie\_O](https://help.nextcloud.com/u/Bernie_O)\
**Post date:** [February 28, 2019, 5:07pm UTC](https://help.nextcloud.com/t/your-web-server-is-not-properly-set-up-to-resolve-ocm-provider/48530/7 "2019-02-28T17:07:44Z")

</div>

That tutorial is installing apache 2.4. I am sorry, I can‘t help then, since I don‘t know enough about apache Webserver.  
But I am sure someone else with apache knowledge will jump in soonish.

---

<div class="post-metadata">

**Author:** ![scgf](https://help.nextcloud.com/letter_avatar/scgf/32/5_5575768a8748004e209b776fc1b2916d.png) [@scgf](https://help.nextcloud.com/u/scgf)\
**Post date:** [February 28, 2019, 5:09pm UTC](https://help.nextcloud.com/t/your-web-server-is-not-properly-set-up-to-resolve-ocm-provider/48530/8 "2019-02-28T17:09:48Z")

</div>

Thank you Bernie\_O. Very kind of you to try and help.

---

<div class="post-metadata">

**Author:** ![Arrappathor](https://help.nextcloud.com/user_avatar/help.nextcloud.com/arrappathor/32/12736_2.png) [@Arrappathor](https://help.nextcloud.com/u/Arrappathor)\
**Post date:** [February 28, 2019, 7:11pm UTC](https://help.nextcloud.com/t/your-web-server-is-not-properly-set-up-to-resolve-ocm-provider/48530/9 "2019-02-28T19:11:25Z")

</div>

I can confirm the same error-message after updating to 15.0.5.  
Nextcloud is installed in an subfolder of root, running with apache2 and mariadb on raspbian stretch.  
And is still running without any other problems - afaik.  
I guess .htaccess (in root) must be altered in some way, but as newbie i have no clue.

---

<div class="post-metadata">

**Author:** ![Arrappathor](https://help.nextcloud.com/user_avatar/help.nextcloud.com/arrappathor/32/12736_2.png) [@Arrappathor](https://help.nextcloud.com/u/Arrappathor)\
**Post date:** [February 28, 2019, 7:15pm UTC](https://help.nextcloud.com/t/your-web-server-is-not-properly-set-up-to-resolve-ocm-provider/48530/10 "2019-02-28T19:15:07Z")

</div>

Same here?

> [@15.05 Upgrade error - Your web server is not properly set up to resolve “/ocm-provider/”](https://help.nextcloud.com/t/15-05-upgrade-error-your-web-server-is-not-properly-set-up-to-resolve-ocm-provider/48527/2):
>
> Same Here , centos 7.5…

---

<div class="post-metadata">

**Author:** ![gus](https://help.nextcloud.com/letter_avatar/gus/32/5_5575768a8748004e209b776fc1b2916d.png) [@gus](https://help.nextcloud.com/u/gus)\
**Post date:** [February 28, 2019, 7:23pm UTC](https://help.nextcloud.com/t/your-web-server-is-not-properly-set-up-to-resolve-ocm-provider/48530/11 "2019-02-28T19:23:38Z")

</div>

Same here! Fedora server 29, Apache (httpd-2.4.38), PHP(7.2.15) upgrade to 15.0.5 from 15.0.4

---

<div class="post-metadata">

**Author:** ![gus](https://help.nextcloud.com/letter_avatar/gus/32/5_5575768a8748004e209b776fc1b2916d.png) [@gus](https://help.nextcloud.com/u/gus)\
**Post date:** [February 28, 2019, 7:51pm UTC](https://help.nextcloud.com/t/your-web-server-is-not-properly-set-up-to-resolve-ocm-provider/48530/12 "2019-02-28T19:51:34Z")

</div>

On Fedora server 29, Apache (httpd-2.4.38), PHP(7.2.15) upgrade to 15.0.5 from 15.0.4. I solved the error by adding the following line in the file \< file-nextcloud \>.conf in the folder /etc/httpd/conf.d

Redirect 301 /ocm-provider https://\< name server \> / \< folder nextcloud install \> / ocm-provider  
Redirect 301 /ocs-provider https://\< name server \> / \< folder nextcloud install \> / ocs-provider

do not put the spaces, they are only for this edition…

---

<div class="post-metadata">

**Author:** ![Tiger](https://help.nextcloud.com/user_avatar/help.nextcloud.com/tiger/32/64205_2.png) [@Tiger](https://help.nextcloud.com/u/Tiger)\
**Post date:** [February 28, 2019, 10:48pm UTC](https://help.nextcloud.com/t/your-web-server-is-not-properly-set-up-to-resolve-ocm-provider/48530/13 "2019-02-28T22:48:14Z")

</div>

Good work for me.

Tested on Also

Redirect 301 /ocm-provider/ /nx/ocm-provider/  
Redirect 301 /ocs-provider/ /nx/ocs-provider/

I writers on .htaccess root  
And work for me,

/nx/ is folder on My nextcloud

---

<div class="post-metadata">

**Author:** ![AnotherSpecialist](https://help.nextcloud.com/user_avatar/help.nextcloud.com/anotherspecialist/32/13750_2.png) [@AnotherSpecialist](https://help.nextcloud.com/u/AnotherSpecialist)\
**Post date:** [February 28, 2019, 10:49pm UTC](https://help.nextcloud.com/t/your-web-server-is-not-properly-set-up-to-resolve-ocm-provider/48530/14 "2019-02-28T22:49:40Z")

</div>

Same here SharedHosting Apache PHP 7.2.3 upgrade to 15.0.4 from 15.0.5.

Thanks to gus and Tiger for a solution 👏  
Because of no access to /etc/httpd/conf.d (SharedHosting) it works for me to put into my .htaccess in the webroot:  
Redirect 301 /ocm-provider /\< FolderNextclouInstall \>/ocm-provider  
Redirect 301 /ocs-provider /\< FolderNextclouInstall \>/ocs-provider

Works for me too …

---

<div class="post-metadata">

**Author:** ![hokaido](https://help.nextcloud.com/letter_avatar/hokaido/32/5_5575768a8748004e209b776fc1b2916d.png) [@hokaido](https://help.nextcloud.com/u/hokaido)\
**Post date:** [February 28, 2019, 11:11pm UTC](https://help.nextcloud.com/t/your-web-server-is-not-properly-set-up-to-resolve-ocm-provider/48530/15 "2019-02-28T23:11:24Z")

</div>

why don`t the nextcloud developers pay more attention to shared enviroments? I guess most of the people have have nextcloud installed on a shared webspace…

---

<div class="post-metadata">

**Author:** ![mainland](https://help.nextcloud.com/letter_avatar/mainland/32/5_5575768a8748004e209b776fc1b2916d.png) [@mainland](https://help.nextcloud.com/u/mainland)\
**Post date:** [March 1, 2019, 12:58am UTC](https://help.nextcloud.com/t/your-web-server-is-not-properly-set-up-to-resolve-ocm-provider/48530/16 "2019-03-01T00:58:02Z")

</div>

I dropped the following into the end of my /etc/apache2.conf file and all good now.

Redirect 301 /ocm-provider/ /nextcloud/ocm-provider/  
Redirect 301 /ocs-provider/ /nextcloud/ocs-provider/

Thanks guys!

---

<div class="post-metadata">

**Author:** ![scgf](https://help.nextcloud.com/letter_avatar/scgf/32/5_5575768a8748004e209b776fc1b2916d.png) [@scgf](https://help.nextcloud.com/u/scgf)\
**Post date:** [March 1, 2019, 7:55am UTC](https://help.nextcloud.com/t/your-web-server-is-not-properly-set-up-to-resolve-ocm-provider/48530/17 "2019-03-01T07:55:27Z")

</div>

As the OP I am increasingly confused. My instance of Nextcloud is running on a Synology DS218+ NAS and none of these locations seem to make sense in my install. I’ve put the redirect commands all over the place to no avail. In the past I’ve had a couple of issues and it’s like I am the only person ever to be running Nextcloud on a Diskstation. The Synology communities claims not to have a clue, neither do the Nextcloud communities and each refers me back to the other - so I am between the devil and the deep blue sea. I’ve even been looking for some alternative to Nextcloud which might be better supported on a Synology NAS - but I am yet to find anything. I need Calendar and Contacts (with user pics) - not too bothered about files. There must be someone out there who can help?

---

<div class="post-metadata">

**Author:** ![User\_loris](https://help.nextcloud.com/letter_avatar/user_loris/32/5_5575768a8748004e209b776fc1b2916d.png) [@User\_loris](https://help.nextcloud.com/u/User_loris)\
**Post date:** [March 1, 2019, 8:48am UTC](https://help.nextcloud.com/t/your-web-server-is-not-properly-set-up-to-resolve-ocm-provider/48530/18 "2019-03-01T08:48:23Z")

</div>

Hi Bernie\_O,

I am also using nginx and nextcloud running in a subdirectory.

I have added the following lines in my nextcloud.conf:

```
    location ~ ^\/nextcloud\/(?:updater|ocs-provider|ocm-provider)(?:$|\/) {
        return 301 $scheme://$host/nextcloud/$1/;
        #return 301 https://$server_name$request_uri;
        try_files $uri/ =404;
        index index.php;
    }

```

but I have always the same warning.

Where I am wrong?  
Thank you in advance.  
Omar

---

<div class="post-metadata">

**Author:** ![omg](https://help.nextcloud.com/letter_avatar/omg/32/5_5575768a8748004e209b776fc1b2916d.png) [@omg](https://help.nextcloud.com/u/omg)\
**Post date:** [March 1, 2019, 9:07am UTC](https://help.nextcloud.com/t/your-web-server-is-not-properly-set-up-to-resolve-ocm-provider/48530/19 "2019-03-01T09:07:50Z")

</div>

> [@mainland](#):
>
> I dropped the following into the end of my /etc/apache2.conf file and all good now.
> 
> Redirect 301 /ocm-provider/ /nextcloud/ocm-provider/  
> Redirect 301 /ocs-provider/ /nextcloud/ocs-provider/
> 
> Thanks guys!

Worked!

PHP Version 7.1.26-1+ubuntu18.04.1+deb.sury.org+1  
NC in /var/www/nextcloud

---

<div class="post-metadata">

**Author:** ![Bernie\_O](https://help.nextcloud.com/user_avatar/help.nextcloud.com/bernie_o/32/40181_2.png) [@Bernie\_O](https://help.nextcloud.com/u/Bernie_O)\
**Post date:** [March 1, 2019, 10:18am UTC](https://help.nextcloud.com/t/your-web-server-is-not-properly-set-up-to-resolve-ocm-provider/48530/20 "2019-03-01T10:18:47Z")

</div>

> [@Bernie\_O](#):
>
> ```auto
> location ~ /(ocm-provider|ocs-provider)/ {
> return 301 $scheme://$host/[NEXTCLOUD]/$1/;
> }
> 
> ```

> [@User\_loris](#):
>
> I have added the following lines in my nextcloud.conf:
> 
> ```auto
> location ~ ^\/nextcloud\/(?:updater|ocs-provider|ocm-provider)(?:$|\/) {
> return 301 $scheme://$host/nextcloud/$1/;
> #return 301 https://$server_name$request_uri;
> try_files $uri/ =404;
> index index.php;
> }
> 
> ```
> 
> but I have always the same warning.  
> Where I am wrong?

Can you see the difference?  
You need to point from the root to the subfolder. My location block does this - your location doesn’t.  
Undo your changes (they break ocs/m-provider completely!) and add my location block right after the location blocks with the `.well-known/[...]` redirects.

[Next page](https://help.nextcloud.com/t/your-web-server-is-not-properly-set-up-to-resolve-ocm-provider/48530.md?page=2)
