New install: no login screen - too many redirects

I am trying to install v21 on my VPS running FreeBSD v13. I install the “nextcloud-php74” package using pkg, change ownership of /usr/local/www/nextcloud to user “www”, then create the empty database in mariadb. The install script seems to run OK, but after completion I get the “too many redirects” error message in the browser, both Firefox and Chrome. What I am expecting to see is the familiar login fields.

I have looked on the web for possible answer, but no luck. Any ideas here?

php v7.4.23
apache v2.4.48
mariadb 105
freebsd 13.0-RELEASE p4

Here is the config.php as auto-generated, no edits except security related stuff:

<?php
$CONFIG = array (
  'instanceid' => 'oc9bdloadzd1',
  'passwordsalt' => '###',
  'secret' => '###',
  'trusted_domains' => 
  array (
    0 => '###.com',
  ),
  'datadirectory' => '/usr/local/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '21.0.2.1',
  'overwrite.cli.url' => 'http://###',
  'dbname' => 'nextcloud',
  'dbhost' => '127.0.0.1:3306',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => '###',
  'installed' => true,
);