# Error on giving a server address

**URL:** <https://help.nextcloud.com/t/error-on-giving-a-server-address/161510>\
**Category:** 💻 Development\
**Created:** [May 5, 2023, 10:16am UTC](https://help.nextcloud.com/t/error-on-giving-a-server-address/161510 "2023-05-05T10:16:28Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![bb77](https://help.nextcloud.com/letter_avatar/bb77/32/5_5575768a8748004e209b776fc1b2916d.png) [@bb77](https://help.nextcloud.com/u/bb77)\
**Post date:** [May 5, 2023, 2:58pm UTC](https://help.nextcloud.com/t/error-on-giving-a-server-address/161510/4 "2023-05-05T14:58:03Z")

</div>

I googled the error message and found multiple threads in the forums and one on GitHub, which include possible solutions:

[https://help.nextcloud.com/t/the-polling-url-does-not-start-with-https-despite-the-login-url-started-with-https/137576/2](https://help.nextcloud.com/t/the-polling-url-does-not-start-with-https-despite-the-login-url-started-with-https/137576/2)

[https://github.com/nextcloud/desktop/issues/3707](https://github.com/nextcloud/desktop/issues/3707)

## TL;DR

Make sure the `config.php` on your server contains the following lines:

```auto
  'trusted_domains' => 
  array (
    0 => 'cloud.domain.tld',
  ),
  'overwrite.cli.url' => 'https://cloud.domain.tld',
  'overwritehost' => 'cloud.domian.tld',
  'overwriteprotocol' => 'https',

```

---

_[View the full topic](https://help.nextcloud.com/t/error-on-giving-a-server-address/161510)._
