Untrusted domain error persist

10
hosting

#1

I have tried all possible combination in the entry for trusted domain. I am using HTTP currently. It was working fine till I used IP address. As soon as I changed servername and serveralias in /etc/apache2/sites-available/owncloud.conf from IP address.

        <VirtualHost *:80>
             ServerAdmin admin
             DocumentRoot /var/www/html/owncloud/
             ServerName ***.com
             ServerAlias www.***.com

         Alias /owncloud "/var/www/html/owncloud/"

         <Directory /var/www/html/owncloud/>
            Options +FollowSymlinks
            AllowOverride All
            Require all granted
              <IfModule mod_dav.c>
                Dav off
              </IfModule>
            SetEnv HOME /var/www/html/owncloud
            SetEnv HTTP_HOME /var/www/html/owncloud
         </Directory>

         ErrorLog ${APACHE_LOG_DIR}/error.log
         CustomLog ${APACHE_LOG_DIR}/access.log combined

    </VirtualHost>

following is my /var/www/html/owncloud/config/config.php file.

<?php
$CONFIG = array (
  'instanceid' => '***',
  'passwordsalt' => '***/',
  'secret' => '***',
  'trusted_domains' =>
  array (
    0=>'www.***.com',
    1=>'http://www.***.com',
    2=>'***.com',
    3=>'178.62.*.*',
    4=>'localhost',
),
  'datadirectory' => '/var/www/html/owncloud/data',
  'dbtype' => 'mysql',
  'version' => '10.0.8.5',
  'dbname' => 'owncloud',
  'dbhost' => 'localhost',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'ownclouduser',
  'dbpassword' => '****',
  'logtimezone' => 'UTC',
  'installed' => true,
);

The apache log has the following error. But this error should not cause the untrusted domain problem.
'/var/www/html/status.php' not found or unable to stat
'/var/www/html/remote.php' not found or unable to stat

Am I missing anything here?


#2

Hi,

I think // is a commentar in php language.

remove the http// from your trusted domains.