# Nextcloud behind Nginx Proxy Manager and Safari (iOS/macOS) no access

**URL:** <https://help.nextcloud.com/t/nextcloud-behind-nginx-proxy-manager-and-safari-ios-macos-no-access/142234>\
**Category:** ℹ️ Support\
**Tags:** reverseproxy, nginx, safari, ios, ncp\
**Created:** [July 15, 2022, 6:55am UTC](https://help.nextcloud.com/t/nextcloud-behind-nginx-proxy-manager-and-safari-ios-macos-no-access/142234 "2022-07-15T06:55:03Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![Viko1690](https://help.nextcloud.com/user_avatar/help.nextcloud.com/viko1690/32/51045_2.png) [@Viko1690](https://help.nextcloud.com/u/Viko1690)\
**Post date:** [January 14, 2024, 11:27am UTC](https://help.nextcloud.com/t/nextcloud-behind-nginx-proxy-manager-and-safari-ios-macos-no-access/142234/13 "2024-01-14T11:27:50Z")

</div>

Hi,

I don’t know your setup of Nextcloud (docker or bare metal installation or something else) but your npm setting looks little bit confusing to me.

Why do you forward with https scheme to port 443 and use a custom location with http scheme and port 80? Have you tried to delete your custom location and forward directly with http scheme to port 80?

Here are my complete advanced settings you can also try:

```auto

proxy_cookie_path / /;
proxy_set_header Cookie $http_cookie;
proxy_hide_header Upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;

location /.well-known/carddav {
return 301 $scheme://$host/remote.php/dav;
}

location /.well-known/caldav {
return 301 $scheme://$host/remote.php/dav;
}

```

---

_[View the full topic](https://help.nextcloud.com/t/nextcloud-behind-nginx-proxy-manager-and-safari-ios-macos-no-access/142234)._
