Skip to content

Commit

Permalink
Merge pull request #6875 from nnhien/patch-2
Browse files Browse the repository at this point in the history
Update nginx configuration
  • Loading branch information
susnux authored Nov 13, 2024
2 parents 570ddb6 + 3822ee6 commit 9dc91d6
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ HAProxy

NGINX
^^^^^
If using nginx as Nextcloud's webserver from behind another nginx reverse proxy, put this only in the reverse proxy's configuration.
::

location /.well-known/carddav {
Expand All @@ -127,13 +128,10 @@ NGINX
location /.well-known/caldav {
return 301 $scheme://$host/remote.php/dav;
}

or

::

rewrite ^/\.well-known/carddav https://$server_name/remote.php/dav/ redirect;
rewrite ^/\.well-known/caldav https://$server_name/remote.php/dav/ redirect;
location ^~ /.well-known {
return 301 $scheme://$host/index.php$uri;
}

When using NGINX Proxy Manager, the entry ``proxy_hide_header Upgrade;`` must be added in the *"Advanced Settings"*
of the proxy host under *"Custom Nginx Configuration"*, otherwise mobile devices (iPad, iPhone etc.) will simply receive the Error Message "Connection Closed".
Expand Down

0 comments on commit 9dc91d6

Please sign in to comment.