HTTPS / SLL access not working from one domain. works with all others

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:

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:

Nextcloud version (eg, 20.0.5): 23.01
Operating system and version (eg, Ubuntu 20.04): Ubuntu 20.10
Apache or nginx version (eg, Apache 2.4.25): 2.4
PHP version (eg, 7.4): 7.4

The issue you are facing:

I extended the SSL certificat with certbot -d old.domain new.domain.
now https connections to old.domain are not working. website shows broken files and folders section. basically showing no formating at all. seems like no css is loaded at all.
It works on old.domain with http. and on http and https with all other trusted domains (new.domain, local ip, local alias)

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

Steps to replicate it:

  1. Login in on https://old.domain
  2. broken files and folder view
  3. https://new.domain all works as expected

The output of your Nextcloud log in Admin > Logging:

 Information	no app in context	Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent is used	
2022-02-13T13:56:20+0100
Information	no app in context	Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent is used	
2022-02-13T13:56:20+0100
Information	no app in context	Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent is used	
2022-02-13T13:56:20+0100
Information	no app in context	Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent is used	
2022-02-13T13:56:20+0100
Information	no app in context	Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent is used	
2022-02-13T13:56:20+0100
Information	no app in context	Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent is used	
2022-02-13T13:56:20+0100
Information	no app in context	Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent is used	
2022-02-13T13:56:20+0100
Information	no app in context	Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent is used	
2022-02-13T13:52:37+0100
Information	no app in context	Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent is used	

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

<?php
 2 $CONFIG = array (
 3   'instanceid' => 'xoxxxxxxo',
 4   'passwordsalt' => 'xxxe',
 5   'secret' => '+xxxxX',
 6   'trusted_domains' =>
 7   array (
 8     0 => '192.168.5.44',
 9     1 => 'old.domain',
10     2 => 'localalias',
11     3 => '[Ip6 adresss]',
12     4 => '192.168.6.1',
13     5 => 'new.domain',
14   ),
15   'datadirectory' => '/var/www/ncdata',
16   'dbtype' => 'mysql',
17   'version' => '23.0.1.2',
18   'overwrite.cli.url' => 'http://old.domain',
19   'dbname' => 'nextcloud',
20   'dbhost' => 'localhost:3306',
21   'dbport' => '',
22   'dbtableprefix' => 'oc_',
23   'mysql.utf8mb4' => true,
24   'dbuser' => 'oc_master',
25   'dbpassword' => 'xxxx',
26   'installed' => true,
27   'logfile' => '/var/log/nextcloud.log',
28   'memcache.local' => '\\OC\\Memcache\\APCu',
29   'memcache.locking' => '\\OC\\Memcache\\Redis',
30   'filelocking.enabled' => 'true',
31   'redis' =>
32   array (
33     'host' => '/var/run/redis/redis-server.sock',
34     'port' => 0,
35     'password' => 'txxx',
36     'timeout' => 0.0,
37   ),
38   'mail_smtpmode' => 'smtp',
39   'mail_smtpsecure' => 'tls',
40   'mail_sendmailmode' => 'smtp',
41   'mail_from_address' => 'technik',
42   'mail_domain' => 'basstar.de',
43   'mail_smtpauthtype' => 'LOGIN',
44   'mail_smtpauth' => 1,
45   'mail_smtphost' => 'xxxxx',
46   'mail_smtpport' => '587',
47   'mail_smtpname' => 'txxxxxx',
48   'mail_smtppassword' => 'xxxx',
49   'maintenance' => false,
50   'theme' => '',
51   'loglevel' => 1,
52   'trashbin_retention_obligation' => 'auto',
53   'app_install_overwrite' =>
54   array (
55     0 => 'nextbackup',
56     1 => 'nextbox',
57   ),
58 );

The output of your Apache/nginx/system log in /var/log/____:
APACHE 2 Error Log /var/log/apache2/error.log

 
 1 [Sun Feb 13 09:24:57.540383 2022] [mpm_prefork:notice] [pid 2124] AH00163: Apache/2.4.46 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
 2 [Sun Feb 13 09:24:57.540469 2022] [core:notice] [pid 2124] AH00094: Command line: '/usr/sbin/apache2'
 3 [Sun Feb 13 10:43:31.297645 2022] [mpm_prefork:notice] [pid 2124] AH00169: caught SIGTERM, shutting down
 4 [Sun Feb 13 10:43:42.493169 2022] [mpm_prefork:notice] [pid 2107] AH00163: Apache/2.4.46 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
 5 [Sun Feb 13 10:43:42.494594 2022] [core:notice] [pid 2107] AH00094: Command line: '/usr/sbin/apache2'
 6 [Sun Feb 13 10:54:40.382453 2022] [mpm_prefork:notice] [pid 2107] AH00169: caught SIGTERM, shutting down
 7 [Sun Feb 13 10:54:51.850222 2022] [mpm_prefork:notice] [pid 2102] AH00163: Apache/2.4.46 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
 8 [Sun Feb 13 10:54:51.850947 2022] [core:notice] [pid 2102] AH00094: Command line: '/usr/sbin/apache2'
 9 [Sun Feb 13 13:27:13.185881 2022] [mpm_prefork:notice] [pid 2102] AH00169: caught SIGTERM, shutting down
10 [Sun Feb 13 13:28:43.394700 2022] [mpm_prefork:notice] [pid 14059] AH00163: Apache/2.4.46 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
11 [Sun Feb 13 13:28:43.395062 2022] [core:notice] [pid 14059] AH00094: Command line: '/usr/sbin/apache2'
12 [Sun Feb 13 13:32:20.206730 2022] [mpm_prefork:notice] [pid 14059] AH00169: caught SIGTERM, shutting down
13 [Sun Feb 13 13:32:20.358792 2022] [mpm_prefork:notice] [pid 19045] AH00163: Apache/2.4.46 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
14 [Sun Feb 13 13:32:20.359110 2022] [core:notice] [pid 19045] AH00094: Command line: '/usr/sbin/apache2'
15 [Sun Feb 13 13:37:54.218226 2022] [mpm_prefork:notice] [pid 19045] AH00169: caught SIGTERM, shutting down
16 [Sun Feb 13 13:37:54.372032 2022] [mpm_prefork:notice] [pid 23484] AH00163: Apache/2.4.46 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
17 [Sun Feb 13 13:37:54.372352 2022] [core:notice] [pid 23484] AH00094: Command line: '/usr/sbin/apache2'
18 [Sun Feb 13 13:40:10.048254 2022] [mpm_prefork:notice] [pid 23484] AH00171: Graceful restart requested, doing restart
19 [Sun Feb 13 13:40:10.080553 2022] [mpm_prefork:notice] [pid 23484] AH00163: Apache/2.4.46 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
20 [Sun Feb 13 13:40:10.080601 2022] [core:notice] [pid 23484] AH00094: Command line: '/usr/sbin/apache2'
21 [Sun Feb 13 13:40:10.492932 2022] [mpm_prefork:notice] [pid 23484] AH00171: Graceful restart requested, doing restart
22 [Sun Feb 13 13:40:10.516223 2022] [mpm_prefork:notice] [pid 23484] AH00163: Apache/2.4.46 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
23 [Sun Feb 13 13:40:10.516286 2022] [core:notice] [pid 23484] AH00094: Command line: '/usr/sbin/apache2'
24 [Sun Feb 13 13:41:34.614551 2022] [mpm_prefork:notice] [pid 23484] AH00169: caught SIGTERM, shutting down
25 [Sun Feb 13 13:41:34.765460 2022] [mpm_prefork:notice] [pid 26670] AH00163: Apache/2.4.46 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
26 [Sun Feb 13 13:41:34.765841 2022] [core:notice] [pid 26670] AH00094: Command line: '/usr/sbin/apache2'
27 [Sun Feb 13 13:50:04.626953 2022] [mpm_prefork:notice] [pid 26670] AH00169: caught SIGTERM, shutting down
28 [Sun Feb 13 13:50:04.778600 2022] [mpm_prefork:notice] [pid 41227] AH00163: Apache/2.4.46 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
29 [Sun Feb 13 13:50:04.778966 2022] [core:notice] [pid 41227] AH00094: Command line: '/usr/sbin/apache2'
30 [Sun Feb 13 13:50:24.633147 2022] [mpm_prefork:notice] [pid 41227] AH00171: Graceful restart requested, doing restart
31 [Sun Feb 13 13:50:24.656751 2022] [ssl:warn] [pid 41227] AH01909: old.domain:443:0 server certificate does NOT include an ID which matches the server name
32 [Sun Feb 13 13:50:24.658690 2022] [mpm_prefork:notice] [pid 41227] AH00163: Apache/2.4.46 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
33 [Sun Feb 13 13:50:24.658738 2022] [core:notice] [pid 41227] AH00094: Command line: '/usr/sbin/apache2'
34 [Sun Feb 13 13:50:25.083111 2022] [mpm_prefork:notice] [pid 41227] AH00171: Graceful restart requested, doing restart
35 [Sun Feb 13 13:50:25.109177 2022] [ssl:warn] [pid 41227] AH01909: old.domain:443:0 server certificate does NOT include an ID which matches the server name
36 [Sun Feb 13 13:50:25.111784 2022] [mpm_prefork:notice] [pid 41227] AH00163: Apache/2.4.46 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
37 [Sun Feb 13 13:50:25.111862 2022] [core:notice] [pid 41227] AH00094: Command line: '/usr/sbin/apache2'
38 [Sun Feb 13 13:58:05.918478 2022] [mpm_prefork:notice] [pid 41227] AH00169: caught SIGTERM, shutting down
39 [Sun Feb 13 13:58:06.044817 2022] [ssl:warn] [pid 46449] AH01909: old.domain:443:0 server certificate does NOT include an ID which matches the server name
40 [Sun Feb 13 13:58:06.066347 2022] [ssl:warn] [pid 46450] AH01909: old.domain:443:0 server certificate does NOT include an ID which matches the server name
41 [Sun Feb 13 13:58:06.073290 2022] [mpm_prefork:notice] [pid 46450] AH00163: Apache/2.4.46 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
42 [Sun Feb 13 13:58:06.073404 2022] [core:notice] [pid 46450] AH00094: Command line: '/usr/sbin/apache2'
43 [Sun Feb 13 13:58:06.212320 2022] [proxy:error] [pid 46453] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /var/run/php/php7.4-fpm.sock (*) failed
44 [Sun Feb 13 13:58:06.212428 2022] [proxy_fcgi:error] [pid 46453] [client 192.168.5.40:52068] AH01079: failed to make connection to backend: httpd-UDS
45



after lots of trying things. I got it to work by running certbot again with

certbot -d old.domain -d new.domain

everything works as expected now