# Nextcloud trusted domain switch

**URL:** <https://help.nextcloud.com/t/nextcloud-trusted-domain-switch/159979>\
**Category:** 📦 Appliances (Docker, Snappy, VM, NCP, AIO)\
**Tags:** docker, feature\
**Created:** [April 12, 2023, 8:55am UTC](https://help.nextcloud.com/t/nextcloud-trusted-domain-switch/159979 "2023-04-12T08:55:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guypa](https://help.nextcloud.com/letter_avatar/guypa/32/6_22734026db12803ebb3e059622ac3534.png) [@Guypa](https://help.nextcloud.com/u/Guypa)\
**Post date:** [April 12, 2023, 8:55am UTC](https://help.nextcloud.com/t/nextcloud-trusted-domain-switch/159979/1 "2023-04-12T08:55:27Z")

</div>

Hey Guys,

I am using Unraid on my homeserver and as i owned a new Domain (working with Plesk) i can not change the domain I looked arround in this forum and nothing helped. Does anyone know how I can change the trusted domain so I can enter nextcloud via “[cloud.exampledomain.de](http://cloud.exampledomain.de)” (if someone wants to answer in German, i live in germany 😉 )

THANKS TO ALL HELPERS 🙂

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [April 13, 2023, 8:22pm UTC](https://help.nextcloud.com/t/nextcloud-trusted-domain-switch/159979/2 "2023-04-13T20:22:30Z")

</div>

hi @Guypa welcome to the forum 🤝

take a look at this article:

> [@HowTo: Add a new trusted domain](https://help.nextcloud.com/t/howto-add-a-new-trusted-domain/26):
>
> Trusted domains are used by Nextcloud to prevent [Host Header Poisoning](https://statuscode.ch/2015/02/a-tale-about-trusted_domains/). You need to specify every domain at which your Nextcloud can be accessed. This means if you have Nextcloud installed at “192.168.0.29” and also want it to be accessible at “[cloud.example.com](http://cloud.example.com)” you’d need to modify the trusted\_domains entry in your config/config.php. The initial config would look like the following: 'trusted\_domains' =\> array ( 0 =\> '192.168.0.29', ), To add a new domain just add new entries by ap…

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 14, 2024, 12:17pm UTC](https://help.nextcloud.com/t/nextcloud-trusted-domain-switch/159979/3 "2024-12-14T12:17:43Z")

</div>


