Untrusted domain error persist

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
            SetEnv HOME /var/www/html/owncloud
            SetEnv HTTP_HOME /var/www/html/owncloud

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


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

$CONFIG = array (
  'instanceid' => '***',
  'passwordsalt' => '***/',
  'secret' => '***',
  'trusted_domains' =>
  array (
  'datadirectory' => '/var/www/html/owncloud/data',
  'dbtype' => 'mysql',
  'version' => '',
  '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?


I think // is a commentar in php language.

remove the http// from your trusted domains.