owncloud error : You are accessing the server from an untrusted domain
2016-11-21 12:54
453 查看
Few days back I
setup Owncloud 6 on Ubuntu 14.04 . After a gap of a few days, I again started the testing server to do some new practical. But after opening the Owncloud I got this given below error –
You are accessing the server from an untrusted domain.
Please contact your administrator. If you are an administrator of this instance, configure the “trusted_domain” setting in config/config.php. An example configuration is provided in config/config.sample.php.
This was something new for me since I have been using Owncloud from its version 5. The error was describing itself, in which file we have to work.
Note:
The problem occured when I opened the owncloud link my testing domain name called
example.com . As I know in starting at the time of installation, I did installation via web interface with IP Address of system.
Solution:
To solve this problem, we have to edit the config.php file of owncloud. In my case it is placed in
Step 1 : Edit the config.php with your favourite file editor. I prefer to go with vi editor
Step 2 : Find the line trusted_domains in config.php file. Now set new array with value
1 of your domain name or IP Address in config file. Please note, in array first array always have numeric number start with Zero ( i.e 0 )
Save and exit and restart the apache service
Below is my config.php file
Step 3: Restart the apache web server
In Debian/Ubuntu/Linux Mint
In Red Hat/CentOS
After this open the owncloud URL. I hope it works for you. Below given screenshot is from my system
setup Owncloud 6 on Ubuntu 14.04 . After a gap of a few days, I again started the testing server to do some new practical. But after opening the Owncloud I got this given below error –
You are accessing the server from an untrusted domain.
Please contact your administrator. If you are an administrator of this instance, configure the “trusted_domain” setting in config/config.php. An example configuration is provided in config/config.sample.php.
This was something new for me since I have been using Owncloud from its version 5. The error was describing itself, in which file we have to work.
Note:
The problem occured when I opened the owncloud link my testing domain name called
example.com . As I know in starting at the time of installation, I did installation via web interface with IP Address of system.
Solution:
To solve this problem, we have to edit the config.php file of owncloud. In my case it is placed in
/var/www/html/owncloud/config/config.php.
Step 1 : Edit the config.php with your favourite file editor. I prefer to go with vi editor
cd /var/www/html/owncloud/ vi config/config.php
Step 2 : Find the line trusted_domains in config.php file. Now set new array with value
1 of your domain name or IP Address in config file. Please note, in array first array always have numeric number start with Zero ( i.e 0 )
Save and exit and restart the apache service
Below is my config.php file
root@ubuntu:/var/www/html/owncloud# cat config/config.php <?php $CONFIG = array ( 'instanceid' => 'oc1190d4ed19', 'passwordsalt' => '41e7078b980cda05aa546c0da37370', 'trusted_domains' => array ( 0 => '192.168.56.101', 1 => 'example.com', ), 'datadirectory' => '/var/www/html/owncloud/data', 'dbtype' => 'mysql', 'version' => '6.0.4.1', 'dbname' => 'owncloud', 'dbhost' => 'localhost', 'dbtableprefix' => 'oc_', 'dbuser' => 'ownclouduser', 'dbpassword' => 'Password', 'installed' => true, );
Step 3: Restart the apache web server
In Debian/Ubuntu/Linux Mint
sudo service apache2 restart
In Red Hat/CentOS
service httpd restart
After this open the owncloud URL. I hope it works for you. Below given screenshot is from my system
相关文章推荐
- description The server encountered an internal error () that prevented it from fulfilling this request.
- 解决方法HTTP Status 500 - description The server encountered an internal error () that prevented it from fulfilling this request
- The server encountered an internal error () that prevented it from fulfilling this request.
- The server encountered an internal error () that prevented it from fulfilling this request.
- Compiler Error Message: CS0234: The type or namespace name ''(are you missing an assembly reference?)
- Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500 解决办法
- 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server
- The server encountered an internal error () that prevented it from fulfilling this request.
- IIS Error:404.2 The page you are requesting cannot be served because of the ISAPI and CGI Restriction list settings on the Web server
- Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.
- The server encountered an internal error () that prevented it from fulfilling this request.
- HTTP Status 500 - description The server encountered an internal error () that prevented it from fulfilling this request.错误解决办法
- The server encountered an internal error () that prevented it from fulfilling this request
- ssh开发中插入数据时遇到 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right
- Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
- The server encountered an internal error () that prevented it from fulfilling this request
- The server encountered an internal error () that prevented it from fulfilling this request.
- 一个困扰很久的问题【description The server encountered an internal error () that prevented it from fulfilling this request】
- keystone -- An unexpected error prevented the server from fulfilling your request. 错误
- The server encountered an internal error () that prevented it from fulfilling this request.