"OwnCloud" Add trusting Domain

Source: Internet
Author: User
Tags owncloud

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.