Nexcloud not working outside lan at browser ... on smartphone it is working fine

Hi there :slight_smile:

i’v installed my nextcloud and have now the following problem:
It is working fine on the smartphone (app and browser) and on the PC/MAC via LAN (LAN IP).
But if i want to use it outside Lan via Dyndns (noip.com) it is not working correctly. The page is whit and it is loading all the time. After about 10 minutes, i will see the background and parts of the login area. So it seems to be loading but veeeery slow. If i open a other html site via my dyndns, it is working fine and fast.

Thank you for your help and best regards!


Nextcloud version : 12
Operating system and version: Ubuntu 16.04 LTS
Apache or nginx version: Apache 2.4.18
PHP version: 7.0.22
Is this the first time you’ve seen this error?: during accessing outside LAN.

The output of your Nextcloud log in Admin > Logging:
Nothing

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=> ‘10.0.0.12’, 1=> '
.dedyn.io’, 2=> ‘10.0.0.138’, 3=> '
.173.250’, 4=> ‘10.0.0.25’
),
‘datadirectory’ => ‘/var/www/nextcloud/data’,
‘overwrite.cli.url’ => ‘.dedyn.io’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘12.0.3.3’,
‘dbname’ => ‘nextcloud’,
‘dbhost’ => ‘localhost’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘dbuser’ => ‘nextclouduser’,
‘dbpassword’ => '
**’,
‘installed’ => true,
‘memcache.local’ => ‘\OC\Memcache\APCu’,
);

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

49 2017] [mpm_prefork:notice] [pid 1716] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Wed Oct 18 02:01:55.148382 2017] [ssl:warn] [pid 1716] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Oct 18 02:01:55.149642 2017] [mpm_prefork:notice] [pid 1716] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Wed Oct 18 02:01:55.149667 2017] [core:notice] [pid 1716] AH00094: Command line: '/usr/sbin/apache2'
[Wed Oct 18 02:04:30.183708 2017] [mpm_prefork:notice] [pid 1716] AH00169: caught SIGTERM, shutting down
[Wed Oct 18 02:05:13.797852 2017] [ssl:warn] [pid 1413] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Oct 18 02:05:14.002516 2017] [ssl:warn] [pid 1487] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Oct 18 02:05:14.021896 2017] [mpm_prefork:notice] [pid 1487] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Wed Oct 18 02:05:14.022050 2017] [core:notice] [pid 1487] AH00094: Command line: '/usr/sbin/apache2'
[Wed Oct 18 02:08:39.959631 2017] [mpm_prefork:notice] [pid 1487] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Wed Oct 18 02:08:40.131512 2017] [ssl:warn] [pid 1487] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Oct 18 02:08:40.132759 2017] [mpm_prefork:notice] [pid 1487] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Wed Oct 18 02:08:40.132784 2017] [core:notice] [pid 1487] AH00094: Command line: '/usr/sbin/apache2'
[Wed Oct 18 02:10:41.137965 2017] [mpm_prefork:notice] [pid 1487] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Wed Oct 18 02:10:41.298480 2017] [ssl:warn] [pid 1487] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Oct 18 02:10:41.299773 2017] [mpm_prefork:notice] [pid 1487] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Wed Oct 18 02:10:41.299800 2017] [core:notice] [pid 1487] AH00094: Command line: '/usr/sbin/apache2'
[Wed Oct 18 02:14:46.310582 2017] [mpm_prefork:notice] [pid 1487] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Wed Oct 18 02:14:46.468917 2017] [ssl:warn] [pid 1487] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Oct 18 02:14:46.470131 2017] [mpm_prefork:notice] [pid 1487] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Wed Oct 18 02:14:46.470154 2017] [core:notice] [pid 1487] AH00094: Command line: '/usr/sbin/apache2'
[Wed Oct 18 02:21:10.247729 2017] [mpm_prefork:notice] [pid 1487] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Wed Oct 18 02:21:10.389663 2017] [ssl:warn] [pid 1487] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Oct 18 02:21:10.390974 2017] [mpm_prefork:notice] [pid 1487] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Wed Oct 18 02:21:10.391048 2017] [core:notice] [pid 1487] AH00094: Command line: '/usr/sbin/apache2'
[Wed Oct 18 02:22:52.078651 2017] [mpm_prefork:notice] [pid 1487] AH00171: Graceful restart requested, doing restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
[Wed Oct 18 02:22:52.251026 2017] [ssl:warn] [pid 1487] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Oct 18 02:22:52.252287 2017] [mpm_prefork:notice] [pid 1487] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Wed Oct 18 02:22:52.252315 2017] [core:notice] [pid 1487] AH00094: Command line: '/usr/sbin/apache2'
[Wed Oct 18 02:23:07.356030 2017] [authz_core:error] [pid 2797] [client 10.0.0.25:54167] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Wed Oct 18 02:27:45.056367 2017] [authz_core:error] [pid 2812] [client 10.0.0.25:54272] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Wed Oct 18 02:27:47.272673 2017] [authz_core:error] [pid 2799] [client 10.0.0.25:54267] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Wed Oct 18 02:28:50.991002 2017] [authz_core:error] [pid 2795] [client 10.0.0.25:54290] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Wed Oct 18 02:28:54.139500 2017] [authz_core:error] [pid 2796] [client 10.0.0.25:54286] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Wed Oct 18 02:28:58.020174 2017] [authz_core:error] [pid 2795] [client 10.0.0.25:54290] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Wed Oct 18 02:29:02.741632 2017] [authz_core:error] [pid 2812] [client 10.0.0.25:54287] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Wed Oct 18 02:29:03.881046 2017] [authz_core:error] [pid 2802] [client 10.0.0.25:54291] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Wed Oct 18 02:29:08.810747 2017] [authz_core:error] [pid 2802] [client 10.0.0.25:54291] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Wed Oct 18 02:29:10.629400 2017] [authz_core:error] [pid 2802] [client 10.0.0.25:54291] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Wed Oct 18 02:29:12.208610 2017] [authz_core:error] [pid 2812] [client 10.0.0.25:54287] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Wed Oct 18 02:29:13.315723 2017] [authz_core:error] [pid 2833] [client 10.0.0.25:54285] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Wed Oct 18 02:29:17.082613 2017] [authz_core:error] [pid 2807] [client 10.0.0.25:54293] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Wed Oct 18 02:29:18.548222 2017] [authz_core:error] [pid 2816] [client 10.0.0.25:54294] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Wed Oct 18 02:29:19.538440 2017] [authz_core:error] [pid 2841] [client 10.0.0.25:54295] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Wed Oct 18 02:29:22.318775 2017] [authz_core:error] [pid 2841] [client 10.0.0.25:54295] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Wed Oct 18 02:54:56.718534 2017] [autoindex:error] [pid 2795] [client 10.0.0.25:54516] AH01276: Cannot serve directory /var/www/nextcloud/core/doc/user/_static/: No matching DirectoryIndex (index.php,index.html) found, and server-generated directory index forbidden by Options directive, referer: http://10.0.0.12/nextcloud/core/doc/user/index.html
[Wed Oct 18 02:58:50.769097 2017] [authz_core:error] [pid 2795] [client 10.0.0.25:54573] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Wed Oct 18 02:58:52.824144 2017] [authz_core:error] [pid 2841] [client 10.0.0.25:54570] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Wed Oct 18 03:05:44.553430 2017] [mpm_prefork:notice] [pid 1487] AH00169: caught SIGTERM, shutting down
[Wed Oct 18 03:06:23.989187 2017] [ssl:warn] [pid 1467] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Oct 18 03:06:24.251101 2017] [ssl:warn] [pid 1536] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Wed Oct 18 03:06:24.282258 2017] [mpm_prefork:notice] [pid 1536] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
[Wed Oct 18 03:06:24.282458 2017] [core:notice] [pid 1536] AH00094: Command line: '/usr/sbin/apache2'

I see some cert errors or configuration errors regarding certs. You should know that modern browsers won’t display untrusted websites or wbsites with cert errors. Check your Apache Settings and Cert config in particular please.

Hi!
at apache2 conf i have de ServerName 1234.dedyn.io … and with apache certonly i made a new cert for 1234.dedyn.io but i have now only this error message:

[ssl:warn] [pid 1380] AH01909: 1234.dedyn.io:443:0 server certificate does NOT include an ID which matches the server name

But the ServerName is the same. Hmmm … what do you think?

it might be a server name foo.example.com but the cert is for bar.example.com but as I said, without knowing your config in detail it’s hard to guess. Sorry…

Ok, which config files should i post?