# Which config.php is the right one and how to add trusted domains correctly

**URL:** <https://help.nextcloud.com/t/which-config-php-is-the-right-one-and-how-to-add-trusted-domains-correctly/230046>\
**Category:** ℹ️ Support\
**Tags:** snap, trusted\_domains, setup\_warning\
**Created:** [August 9, 2025, 5:41am UTC](https://help.nextcloud.com/t/which-config-php-is-the-right-one-and-how-to-add-trusted-domains-correctly/230046 "2025-08-09T05:41:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![scubamuc](https://help.nextcloud.com/user_avatar/help.nextcloud.com/scubamuc/32/63165_2.png) [@scubamuc](https://help.nextcloud.com/u/scubamuc)\
**Post date:** [August 9, 2025, 5:56am UTC](https://help.nextcloud.com/t/which-config-php-is-the-right-one-and-how-to-add-trusted-domains-correctly/230046/2 "2025-08-09T05:56:57Z")

</div>

Hello @Eegxeta,

welcome to the Nextcloud community! 🤝 and thanks for supporting the snap

> [@Eegxeta](#):
>
> So I dug into the documentation found the right section and used locate to find config.php. There was two different files with that name.
> 
> /snap/nextcloud/49338/htdocs/config/config.php  
> /var/snap/nexcloud/49338/nextcloud/config/config.php

which documentation was that? see [https://github.com/nextcloud-snap/nextcloud-snap](https://github.com/nextcloud-snap/nextcloud-snap) and [Nextcloud snap wiki](https://github.com/nextcloud-snap/nextcloud-snap/wiki) and [Nextcloud latest admin manual](https://docs.nextcloud.com/server/latest/admin_manual/installation/source_installation.html#installing-via-snap-packages) for official documentation and you’ll find some [how-to’s](https://help.nextcloud.com/tags/c/how-to-faqs/9/snap/l/top?ascending=false&order=views) here in the forum:

> [@How to install Nextcloud snap](https://help.nextcloud.com/t/how-to-install-nextcloud-snap/216058):
>
> [How to install Nextcloud snap](https://help.nextcloud.com/t/how-to-install-nextcloud-snap/216058)[How to configure Nextcloud snap](https://help.nextcloud.com/t/how-to-configure-nextcloud-snap/216036)[How to manage Lets Encrypt for Nextcloud snap](https://help.nextcloud.com/t/how-to-manage-lets-encrypt-for-nextcloud-snap/216069)[How to manage setup warnings in Nextcloud snap](https://help.nextcloud.com/t/how-to-manage-setup-warnings-in-nextcloud-snap/216054)[Nextcloud snap wiki and support](https://help.nextcloud.com/t/nextcloud-snap-wiki-and-support/197783) You have decided to set up Nextcloud snap as a safe home for your data, that’s great! Thanks for supporting Nextcloud snap. handshake Nextcloud snap is a community driven installation method and is designed to be easy to install and simple to maintain. The ideal Nextcloud snap is an “install and forget” …

and especially:

> [@How to edit config.php for Nextcloud snap](https://help.nextcloud.com/t/how-to-edit-config-php-for-nextcloud-snap/218564):
>
> Edit config.php for Nextcloud snap [PHP configuration options](https://github.com/nextcloud-snap/nextcloud-snap/wiki/Configure-config.php) Some Nextcloud snap settings may need to be done directly in the config.php configuration file. While the default configurations are mostly fine, you might want to fine tune your Nextcloud snap instance. Nextcloud snap offers different configuration methods. While some folks prefer editing the configuration file using their favourite editor like nano, vim or UI texteditors like gedit, kedit etc. the [OCC management console](https://help.nextcloud.com/t/how-to-use-occ-management-console-for-nextcloud-snap/216111/) is a safe a…

> [@How to configure Nextcloud snap](https://help.nextcloud.com/t/how-to-configure-nextcloud-snap/216036):
>
> Nextcloud snap configuration Nextcloud snap configuration[How to install Nextcloud snap](https://help.nextcloud.com/t/how-to-install-nextcloud-snap/216058)[How to configure Nextcloud snap](https://help.nextcloud.com/t/how-to-configure-nextcloud-snap/216036)[How to edit config.php for Nextcloud snap](https://help.nextcloud.com/t/how-to-edit-config-php-for-nextcloud-snap/218564)[How to use OCC management console for Nextcloud snap](https://help.nextcloud.com/t/how-to-use-occ-management-console-for-nextcloud-snap/216111)[How to manage external media and storage for Nextcloud snap](https://help.nextcloud.com/t/how-to-manage-external-media-and-storage-for-nextcloud-snap/216039)[How to manage setup warnings in Nextcloud snap](https://help.nextcloud.com/t/how-to-manage-setup-warnings-in-nextcloud-snap/216054)[Nextcloud snap wiki & support](https://help.nextcloud.com/t/nextcloud-snap-wiki-and-support/197783)HTTPS encryption with Lets Encrypt The only thing we recommend you do up front is enable HTTPS. Nextcloud snap includes a service for automated…

> [@Eegxeta](#):
>
> trusted\_domains’ =\>  
> array (  
> 0 =\> ‘10.0.0.50’,  
> ),
> 
> I’ve tried pretty much everything I can think of. Can anyone help with this?

that looks like an IP-address and not a domain name, try [FQDN](https://github.com/nextcloud-snap/nextcloud-snap/wiki/Hosts-and-FQDN-for-Nextcloud-snap) instead, see [setting trusted domains](https://help.nextcloud.com/t/how-to-edit-config-php-for-nextcloud-snap/218564#p-655465-setting-trusted-domains-3) and [Hosts & FQDN configuration](https://github.com/nextcloud-snap/nextcloud-snap/wiki/Hosts-and-FQDN-for-Nextcloud-snap)

also look at [101: Network, domain and DNS](https://help.nextcloud.com/t/101-network-domain-and-dns/201882) and especially reference to [101: VPN service](https://help.nextcloud.com/t/101-vpn-service/201997) restrictions.

> [@Eegxeta](#):
>
> I want to be able to access it over a Netbird network

please contact the [Netbird](https://netbird.io/) folks for support if you’re facing connectivity issues.

---

_[View the full topic](https://help.nextcloud.com/t/which-config-php-is-the-right-one-and-how-to-add-trusted-domains-correctly/230046)._
