# Resolve "/.well-known/caldav"

**URL:** <https://help.nextcloud.com/t/resolve-well-known-caldav/168435>\
**Category:** ℹ️ Support\
**Tags:** configure, apache, setup\_warning\
**Created:** [August 18, 2023, 12:22am UTC](https://help.nextcloud.com/t/resolve-well-known-caldav/168435 "2023-08-18T00:22:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![SchBenedikt](https://help.nextcloud.com/user_avatar/help.nextcloud.com/schbenedikt/32/52761_2.png) [@SchBenedikt](https://help.nextcloud.com/u/SchBenedikt)\
**Post date:** [August 18, 2023, 5:35am UTC](https://help.nextcloud.com/t/resolve-well-known-caldav/168435/2 "2023-08-18T05:35:05Z")

</div>

**Your web server is not properly configured to resolve “/.well-known/something.**

Hello @plantarum

There may be different variants here, but we use these to solve the problem:

We create with

`sudo nano /etc/apache2/sites-enabled/000-default-le-ssl.conf`  
A new config file and add the following content:

```python
<IfModule mod_headers.c>
  Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains; strict-origin; preload"
  Redirect 301 /.well-known/carddav /nextcloud/remote.php/dav
  Redirect 301 /.well-known/caldav /nextcloud/remote.php/dav
</IfModule>

```

Since the NextCloud is in the subfolder /nextcloud in our case, you have to specify this folder. If you have not followed our instructions, you can omit the /nextcloud.

To be on the safe side, we are now also changing the document root of the default ssl file

`sudo nano /etc/apache2/sites-available/default-ssl.conf`  
to `/var/www/wordpress`.

Then that would be solved!

Hope this guide will help you. Feel free to visit our website; there are several troubleshooting guides.

Best regards,  
schBenedikt

[https://url.schächner.de/73e](https://url.xn--schchner-2za.de/73e) and  
[https://technik.schächner.de/blog/2022/08/05/sicherheits-und-einrichtungswarnungen-nextcloud/](https://technik.xn--schchner-2za.de/blog/2022/08/05/sicherheits-und-einrichtungswarnungen-nextcloud/)

---

_[View the full topic](https://help.nextcloud.com/t/resolve-well-known-caldav/168435)._
