# HTTP 405 error with Apple Calendar (nginx + proxy\_pass + nextcloud 22)

**URL:** <https://help.nextcloud.com/t/http-405-error-with-apple-calendar-nginx-proxy-pass-nextcloud-22/122676>\
**Category:** 📱 Desktop & mobile clients\
**Tags:** mac\
**Created:** [August 28, 2021, 11:28am UTC](https://help.nextcloud.com/t/http-405-error-with-apple-calendar-nginx-proxy-pass-nextcloud-22/122676 "2021-08-28T11:28:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaelREBOUX](https://help.nextcloud.com/letter_avatar/maelreboux/32/6_449c533f586939b6e5f246632a46421f.png) [@MaelREBOUX](https://help.nextcloud.com/u/MaelREBOUX)\
**Post date:** [August 28, 2021, 11:28am UTC](https://help.nextcloud.com/t/http-405-error-with-apple-calendar-nginx-proxy-pass-nextcloud-22/122676/1 "2021-08-28T11:28:49Z")

</div>

Hello

I have a fresh install of nextcloud 22.1.0 on a Ubuntu 20.04-1 server.

This nextcloud instance is under nginx and is behind a nginx proxy server  
www —\> nginx proxy —\> nginx applicative —\> nextcloud

I use https (force redirect http to https) managed by certbot / Let’s encrypt.

I think that the configuration of the 2 nginx is quite good because all is working well with :

- web browsers
- desktop client under Ubuntu Desktop (sync ok)
- Contacts sync with Thunderbird via TbSync plugin
- desktop client under Mac OS (Big Sure)

BUT it is impossible to configure the Apple Calendar application. Under Mac OS Big Sure nore Mojave).

The Apple Calendar says : “could not check user or password”, after a few seconds.  
I choose to create an “advanced configuration”  
And “/remote.php/dav/principals/users/USERNAME” because it works for the Thunderbird plugin and it was the same path on my previous owncloud server.

In the nginx logs we can always see the same patern :

```auto
"PROPFIND /.well-known/caldav HTTP/1.0" 301 169 "-" "Mac+OS+X/10.15.7 (19H1217) accountsd/113"
"PROPFIND / HTTP/1.0" 405 157 "-" "Mac+OS+X/10.15.7 (19H1217) accountsd/113"
"PROPFIND /caldav/v2 HTTP/1.0" 405 0 "-" "Mac+OS+X/10.15.7 (19H1217) accountsd/113"
"PROPFIND /principals/users/USERNAME/ HTTP/1.0" 405 0 "-" "Mac+OS+X/10.15.7 (19H1217) accountsd/113"
"PROPFIND /principals/ HTTP/1.0" 405 0 "-" "Mac+OS+X/10.15.7 (19H1217) accountsd/113"
"PROPFIND /dav/principals/ HTTP/1.0" 405 0 "-" "Mac+OS+X/10.15.7 (19H1217) accountsd/113"

```

accountsd/113 is the “internet accounts” setup application client.

I searched a long time in this support forum but any advice works. Maybe messages are too older ?

> [@NC13: caldav + macos/ios issue, android works](https://help.nextcloud.com/t/nc13-caldav-macos-ios-issue-android-works/32004/4):
>
> That’s very good that service discovery is working. The following works for me and friends of mine very reliable: delete eventuelly existing caldav accounts using your nextcloud-instance (example.xyz) from your clients (Mac/iOS). to add a caldav-account on your iOS-device: go to “settings” --\> “accounts+passwords” --\> “add account” --\> “other” --\> “add caldav account” As server enter only the domain name nothing else (in your example this would be “example.xyz”). Also enter username and…

> **[Nextcloud CalDAV can't log in](https://forum.vivaldi.net/topic/53329/nextcloud-caldav-can-t-log-in/21?lang=fr&page=2)**
>
> Join the Vivaldi Community to connect with friends from around the world and discuss technology, the future of the web, and development of the Vivaldi Browser.

Do anyone knows how to configure correctly Apple Calendar ?  
Did I miss something on the server side configuration ?

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:** [August 29, 2021, 6:46am UTC](https://help.nextcloud.com/t/http-405-error-with-apple-calendar-nginx-proxy-pass-nextcloud-22/122676/2 "2021-08-29T06:46:20Z")

</div>

> [@MaelREBOUX](#):
>
> ```plaintext
> "PROPFIND /.well-known/caldav HTTP/1.0" 301 169 "-" "Mac+OS+X/10.15.7 (19H1217) accountsd/113"
> "PROPFIND / HTTP/1.0" 405 157 "-" "Mac+OS+X/10.15.7 (19H1217) accountsd/113"
> 
> ```

This looks like [service discovery](https://docs.nextcloud.com//server/stable/admin_manual/issues/general_troubleshooting.html#service-discovery) is not configured as it should.

```auto
/.well-known/caldav 

```

should redirect to (nextcloud in webroot):

```auto
/remote.php/dav

```

or to (Nextcloud in a subdirectory):

```auto
/[SUBDIRECTORY]/remote.php/dav

```

In your case the redirect goes to:

```auto
/

```

After fixing that, I would recommend to first delete the falsely configured account from macOS and then to [follow the documentation to add the account to macOS](https://docs.nextcloud.com/server/stable/user_manual/en/pim/sync_osx.html).

My server-log, when adding an account (macOS 11.5.2, Nextcloud 22.1.1 in webroot):

```plaintext
192.168.1.4 - - [29/Aug/2021:08:25:52 +0200] "PROPFIND /.well-known/caldav HTTP/1.1" 301 178 "-" "macOS/11.5.2 (20G95) accountsd/113"
192.168.1.4 - - [29/Aug/2021:08:25:53 +0200] "PROPFIND /remote.php/dav/ HTTP/1.1" 401 569 "-" "macOS/11.5.2 (20G95) accountsd/113"
192.168.1.4 - dummy [29/Aug/2021:08:25:55 +0200] "PROPFIND /remote.php/dav/ HTTP/1.1" 207 263 "-" "macOS/11.5.2 (20G95) accountsd/113"
192.168.1.4 - dummy [29/Aug/2021:08:25:57 +0200] "OPTIONS /remote.php/dav/principals/users/dummy/ HTTP/1.1" 200 0 "-" "macOS/11.5.2 (20G95) accountsd/113"
192.168.1.4 - - [29/Aug/2021:08:25:57 +0200] "PROPFIND /remote.php/dav/principals/users/dummy/ HTTP/1.1" 401 569 "-" "macOS/11.5.2 (20G95) CalendarAgent/954"
192.168.1.4 - dummy [29/Aug/2021:08:26:00 +0200] "PROPFIND /remote.php/dav/principals/users/dummy/ HTTP/1.1" 207 283 "-" "macOS/11.5.2 (20G95) CalendarAgent/954"
192.168.1.4 - dummy [29/Aug/2021:08:26:00 +0200] "PROPFIND /remote.php/dav/principals/users/dummy/ HTTP/1.1" 207 537 "-" "macOS/11.5.2 (20G95) CalendarAgent/954"
192.168.1.4 - dummy [29/Aug/2021:08:26:02 +0200] "OPTIONS /remote.php/dav/principals/users/dummy/ HTTP/1.1" 200 0 "-" "macOS/11.5.2 (20G95) CalendarAgent/954"

```

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 14, 2024, 8:22pm UTC](https://help.nextcloud.com/t/http-405-error-with-apple-calendar-nginx-proxy-pass-nextcloud-22/122676/3 "2024-12-14T20:22:20Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 14, 2024, 8:22pm UTC](https://help.nextcloud.com/t/http-405-error-with-apple-calendar-nginx-proxy-pass-nextcloud-22/122676/4 "2024-12-14T20:22:22Z")

</div>


