If you replace the access mode after installing owncloud, such as Http://127.0.0.1/owncloud, which is Http://1.1.1.1/owncloud, you might get a page like this when you visit:
You are accessing a server from an untrusted domain name.
Please contact your administrator. If you are a administrator of this instance, configure the ' trusted_domains ' setting in config/config.php. An example configuration was provided in config/config.sample.php or at the documentation.
First, manually add the custom fields by modifying the config.php file at this time
1, before the change, we first come to know what is config.php
- There are some safety-related parameters in the config.php, and it is recommended that you do not disclose them easily.
- All parameters are added to delete all in <?php and); Within the label.
2, first use the CD command to enter the owncloud installation directory (APT installation generally in/var/www/html/owncloud)
Cd/var/www/html/owncloud/config
Vim config.php
or (OR)
vim/var/www/html/owmcloud/config/config.php
3. config.php file contents as follows
Primarily modifies the contents of the "trusting domain" code snippet
The original address is 0 + ' 127.0.0.1 ', add your own changed address, such as this time increase of 1.1.1.1
This section of the code can add multiple address segments, each line of numbers in sequential increments, or you can directly modify 0 lines of code.
"OwnCloud" Add trusting Domain