Index.php redirect loop after update

Nextcloud version (eg, 20.0.5): 20.0.1.1
Operating system and version : Debian 4.19.194-3
Apache version : Apache 2.4.38-3+deb10u5
PHP version : 7.3+69

The issue you are facing:

Getting an 500 internal server error from webpage. remote.php working fine, can access from applications on desktop that connect to webdav items and the like. Can browse files from nextcloud app and play music from dsub. I have run maintenance mode repair, and update htaccess. When either borking file access or putting in maintenance mode an actual page loads

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

Steps to replicate it:

  1. go to https://bridge.thecage.top

The output of your Nextcloud log in Admin > Logging:

Unavailable. Latest entries are from months ago.

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

#this comment not in config, but any entries here that show blank are as such in the config
<?php
$CONFIG = array (
  'trusted_domains' =>
  array (
    0 =>  'bridge.thecage.top',
  ),
  'datadirectory' => '/var/www/html/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '21.0.1.1',
  'overwrite.cli.url' => 'http://bridge.thecage.top/nextcloud',
  'dbname' => 'nextcloud_db',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'installed' => true,
  'htaccess.RewriteBase' => '/nextcloud',
  'maintenance' => false,
  'memcache.local' => 'OC\\Memcache\\APCu',
  'log_type' => 'file',
  'log_file' => '/var/log/nextcloud.log',
  'theme' => '',
  'loglevel' => 2,
  'has_rebuilt_cache' => true,
#  'htaccess.IgnoreFrontController' => true,
);

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

[Wed Sep 29 18:56:22.849536 2021] [ssl:info] [pid 8624] [client 11.11.20.11:39540] AH01964: Connection to child 8 established (server bridge.thecage.top:443)
[Wed Sep 29 18:56:22.849776 2021] [socache_shmcb:debug] [pid 8624] mod_socache_shmcb.c(532): AH00835: socache_shmcb_retrieve (0xa9 -> subcache 9)
[Wed Sep 29 18:56:22.849795 2021] [socache_shmcb:debug] [pid 8624] mod_socache_shmcb.c(884): AH00849: match at idx=1, data=210
[Wed Sep 29 18:56:22.849799 2021] [socache_shmcb:debug] [pid 8624] mod_socache_shmcb.c(542): AH00836: leaving socache_shmcb_retrieve successfully
[Wed Sep 29 18:56:22.849865 2021] [ssl:debug] [pid 8624] ssl_engine_kernel.c(2319): [client 11.11.20.11:39540] AH02043: SSL virtual host for servername bridge.thecage.top found
[Wed Sep 29 18:56:22.849872 2021] [ssl:debug] [pid 8624] ssl_engine_kernel.c(2319): [client 11.11.20.11:39540] AH02043: SSL virtual host for servername bridge.thecage.top found
[Wed Sep 29 18:56:22.849876 2021] [core:debug] [pid 8624] protocol.c(2314): [client 11.11.20.11:39540] AH03155: select protocol from h2,h2c,http/1.1, choices=h2,http/1.1 for server bridge.thecage.top
[Wed Sep 29 18:56:22.849894 2021] [core:debug] [pid 8624] protocol.c(2359): [client 11.11.20.11:39540] AH03156: select protocol, proposals=http/1.1 preferences=h2,h2c,http/1.1 configured=h2,h2c,http/1.1
[Wed Sep 29 18:56:22.849897 2021] [core:debug] [pid 8624] protocol.c(2377): [client 11.11.20.11:39540] AH03157: selected protocol=http/1.1
[Wed Sep 29 18:56:22.850347 2021] [ssl:debug] [pid 8624] ssl_engine_kernel.c(2235): [client 11.11.20.11:39540] AH02041: Protocol: TLSv1.3, Cipher: TLS_AES_128_GCM_SHA256 (128/128 bits)
[Wed Sep 29 18:56:22.850397 2021] [socache_shmcb:debug] [pid 8624] mod_socache_shmcb.c(495): AH00831: socache_shmcb_store (0xce -> subcache 14)
[Wed Sep 29 18:56:22.850410 2021] [socache_shmcb:debug] [pid 8624] mod_socache_shmcb.c(849): AH00847: insert happened at idx=1, data=(206:238)
[Wed Sep 29 18:56:22.850413 2021] [socache_shmcb:debug] [pid 8624] mod_socache_shmcb.c(854): AH00848: finished insert, subcache: idx_pos/idx_used=0/2, data_pos/data_used=0/413
[Wed Sep 29 18:56:22.850416 2021] [socache_shmcb:debug] [pid 8624] mod_socache_shmcb.c(516): AH00834: leaving socache_shmcb_store successfully
[Wed Sep 29 18:56:22.850485 2021] [ssl:debug] [pid 8624] ssl_engine_kernel.c(383): [client 11.11.20.11:39540] AH02034: Initial (No.1) HTTPS request received for child 8 (server bridge.thecage.top:443)
[Wed Sep 29 18:56:22.851438 2021] [core:error] [pid 8624] [client 11.11.20.11:39540] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Wed Sep 29 18:56:22.851449 2021] [core:debug] [pid 8624] core.c(3833): [client 11.11.20.11:39540] AH00121: r->uri = /nextcloud/index.php
[Wed Sep 29 18:56:22.851452 2021] [core:debug] [pid 8624] core.c(3840): [client 11.11.20.11:39540] AH00122: redirected from r->uri = /nextcloud/index.php
[Wed Sep 29 18:56:22.851455 2021] [core:debug] [pid 8624] core.c(3840): [client 11.11.20.11:39540] AH00122: redirected from r->uri = /nextcloud/index.php
[Wed Sep 29 18:56:22.851458 2021] [core:debug] [pid 8624] core.c(3840): [client 11.11.20.11:39540] AH00122: redirected from r->uri = /nextcloud/index.php
[Wed Sep 29 18:56:22.851461 2021] [core:debug] [pid 8624] core.c(3840): [client 11.11.20.11:39540] AH00122: redirected from r->uri = /nextcloud/index.php
[Wed Sep 29 18:56:22.851465 2021] [core:debug] [pid 8624] core.c(3840): [client 11.11.20.11:39540] AH00122: redirected from r->uri = /nextcloud/index.php
[Wed Sep 29 18:56:22.851467 2021] [core:debug] [pid 8624] core.c(3840): [client 11.11.20.11:39540] AH00122: redirected from r->uri = /nextcloud/index.php
[Wed Sep 29 18:56:22.851470 2021] [core:debug] [pid 8624] core.c(3840): [client 11.11.20.11:39540] AH00122: redirected from r->uri = /nextcloud/index.php
[Wed Sep 29 18:56:22.851473 2021] [core:debug] [pid 8624] core.c(3840): [client 11.11.20.11:39540] AH00122: redirected from r->uri = /nextcloud/index.php
[Wed Sep 29 18:56:22.851477 2021] [core:debug] [pid 8624] core.c(3840): [client 11.11.20.11:39540] AH00122: redirected from r->uri = /nextcloud/index.php
[Wed Sep 29 18:56:22.851479 2021] [core:debug] [pid 8624] core.c(3840): [client 11.11.20.11:39540] AH00122: redirected from r->uri = /login
[Wed Sep 29 18:56:22.851491 2021] [headers:debug] [pid 8624] mod_headers.c(900): AH01503: headers: ap_headers_error_filter()
[Wed Sep 29 18:56:22.851579 2021] [ssl:debug] [pid 8624] ssl_engine_io.c(1106): [client 11.11.20.11:39540] AH02001: Connection closed to child 8 with standard shutdown (server bridge.thecage.top:443)
[Wed Sep 29 18:56:24.528496 2021] [ssl:info] [pid 8623] [client 192.241.200.248:43106] AH01964: Connection to child 7 established (server bridge.thecage.top:443)
[Wed Sep 29 18:56:24.528725 2021] [ssl:info] [pid 8623] [client 192.241.200.248:43106] AH02008: SSL library error 1 in handshake (server bridge.thecage.top:443)
[Wed Sep 29 18:56:24.528755 2021] [ssl:info] [pid 8623] SSL Library Error: error:14209102:SSL routines:tls_early_post_process_client_hello:unsupported protocol
[Wed Sep 29 18:56:24.528770 2021] [ssl:info] [pid 8623] [client 192.241.200.248:43106] AH01998: Connection closed to child 7 with abortive shutdown (server bridge.thecage.top:443)
[Wed Sep 29 18:56:24.528790 2021] [http2:debug] [pid 8623] h2_h2.c(622): (103)Software caused connection abort: [client 192.241.200.248:43106] AH03054: h2_h2, error reading 24 bytes speculative
[Wed Sep 29 18:56:27.436726 2021] [ssl:info] [pid 8384] [client 192.241.209.240:34054] AH01964: Connection to child 0 established (server bridge.thecage.top:443)
[Wed Sep 29 18:56:27.436957 2021] [ssl:info] [pid 8384] [client 192.241.209.240:34054] AH02008: SSL library error 1 in handshake (server bridge.thecage.top:443)
[Wed Sep 29 18:56:27.436996 2021] [ssl:info] [pid 8384] SSL Library Error: error:14209102:SSL routines:tls_early_post_process_client_hello:unsupported protocol
[Wed Sep 29 18:56:27.437002 2021] [ssl:info] [pid 8384] [client 192.241.209.240:34054] AH01998: Connection closed to child 0 with abortive shutdown (server bridge.thecage.top:443)
[Wed Sep 29 18:56:27.437023 2021] [http2:debug] [pid 8384] h2_h2.c(622): (103)Software caused connection abort: [client 192.241.209.240:34054] AH03054: h2_h2, error reading 24 bytes speculative