Skip to content

/.well-known/caldav and /.well-known/carddav not resolved on port <> 80 #11789

Description

@macmeck

I have Nextcloud 14.0.3 running on a port different than 80. Nginx is configured according to the documentation. Though, Security & setup warnings shows up

Your web server is not properly set up to resolve "/.well-known/caldav".
Your web server is not properly set up to resolve "/.well-known/carddav".

I guess that the redirect in the nginx configuration redirects only to the standard ports 80/443. I haven't found out how to add the correct port dynamically yet.

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

Steps to reproduce

  1. Install Nextcloud
  2. setup nginx according to documentation

Expected behaviour

No warnings should be displayed.

Actual behaviour

I get two warnings mentioned above:

Your web server is not properly set up to resolve "/.well-known/caldav".
Your web server is not properly set up to resolve "/.well-known/carddav".

Server configuration

Operating system: Ubuntu 18.04

Web server: nginx

Database: mariaDB

PHP version: 7.2

Nextcloud version: 14.0.3

Updated from an older Nextcloud/ownCloud or fresh install: updated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions