# 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:** 1\
**Showing post:** 2

<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…

---

_[View the full topic](https://help.nextcloud.com/t/nextcloud-trusted-domain-switch/159979)._
