Nextcloud only works with SSL disabled

Nextcloud version (eg, 20.0.5): 24.0
Operating system and version (eg, Ubuntu 20.04): Debian 11
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.53
PHP version (eg, 7.4): 8.0

The issue you are facing:
Nextcloud is only loading when SSL is disabled.
When using SSL all requests take forever to load and get killed eventually due to the process timeout.

When disabling SSL everything works as expected again.

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

Steps to replicate it:

  1. Install Nextcloud + recommended apps
  2. Works as expected
  3. Enable SSL
  4. Nextcloud is unresponsive and all requests take forever to load

The output of your Nextcloud log in Admin > Logging:

PASTE HERE

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

<?php
$CONFIG = array (
  'instanceid' => 'ocako3iqizmb',
  'passwordsalt' => 'adsfadsfasfadsf',
  'secret' => 'adsfadsfasfadsf',
  'trusted_domains' => 
  array (
    0 => 'mydomain.com',
  ),
  'datadirectory' => '/home/users/iankfufofu/www/data',
  'dbtype' => 'mysql',
  'version' => '24.0.0.12',
  'overwrite.cli.url' => 'https://mydomain.com',
  'dbname' => 'iankfufofu_db2',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'iankfufofu_db2',
  'dbpassword' => 'xxxx',
  'installed' => true,
);

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

No related errors

I think this is related to a missing requirements check for the default apps