Nextcloud not accessible over the app

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

The issue you are facing:
Nextcloud is not accessible over the App (works on PC webbrowser and on chrome on my android).
The Server is hosted locally and is only reachable locally.
I use PiHole for dns, and it’s working correctly.
Nextcloud is hosted with Apache2 and uses a vhost (so only accessible over the domain).
The App seems to use the ip (looking at the apache2 log) even though I set it up with the domain (https://nextcloud.example.com/ was my setup domain in the app).

Is this the first time you’ve seen this error? (Y/N): y

Steps to replicate it:

  1. Setup Nextcloud with vhosts
  2. Install PiHole (or any dns server)
  3. Try to access nextcloud over the app while using that dns server (nextcloud is only locally reachable)

The output of your Nextcloud log in Admin > Logging:

Error	PHP	Module 'mbstring' already loaded at Unknown#0

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => '****',
  'passwordsalt' => '****',
  'secret' => '****',
  'trusted_domains' => 
  array (
    0 => 'nextcloud.example.com',
  ),
  'datadirectory' => '/nextcloud',
  'dbtype' => 'mysql',
  'activity_expire_days' => 365,
  'version' => '17.0.2.1',
  'overwrite.cli.url' => 'https://nextcloud.example.com',
  'htaccess.RewriteBase' => '/',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '****',
  'dbpassword' => '****',
  'installed' => true,
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' => 
  array (
    0 => 'admin',
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
  ),
  'updater.secret' => '****',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'updater.release.channel' => 'stable',
);

The output of your Apache/nginx/system log in /var/log/____:

*IP* - - [20/Dec/2019:12:52:59 +0100] "GET / HTTP/1.1" 200 25622 "-" "Dalvik/2.1.0 (Linux; U; Android 8.0.0; SM-G930F Build/R16NW)"
*IP* - - [20/Dec/2019:12:53:14 +0100] "GET / HTTP/1.1" 200 26066 "-" "Mozilla/5.0 (Linux; Android 8.0.0; SM-G930F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.93 Mobile Safari/537.36"
*IP* - - [20/Dec/2019:12:53:16 +0100] "GET /favicon.ico HTTP/1.1" 404 490 "http://*RASP-IP*/" "Mozilla/5.0 (Linux; Android 8.0.0; SM-G930F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.93 Mobile Safari/537.36"
*IP* - - [20/Dec/2019:12:53:37 +0100] "GET / HTTP/1.1" 200 25628 "-" "Dalvik/2.1.0 (Linux; U; Android 8.0.0; SM-G930F Build/R16NW)"
*IP* - - [20/Dec/2019:12:53:55 +0100] "GET / HTTP/1.1" 200 25630 "-" "Dalvik/2.1.0 (Linux; U; Android 8.0.0; SM-G930F Build/R16NW)"