docker apache nextcloud don't work with host nginx

Hi,

I have a setup nextcloud in docker (apache) and I have set nginx in host, when i try to go to the website I get this error:

But I didn’t find any logs from apache or nextcloud.log is empry also

Internal Server Error

The server encountered an internal error and was unable to complete your request.
Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.

config.php

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  "log_type" => "file",
  "logfile" => "data/nextcloud.log",
  "loglevel" => 0,
  "logdateformat" => "F d, Y H:i:s",
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'redis',
    'password' => '',
    'port' => 6379,
  ),
  'instanceid' => 'xxxx',
  'passwordsalt' => 'xxxx',
  'secret' => 'xxxx+',
  'trusted_proxies' =>
  array (
    0 => '172.27.0.11/16',
    1 => '172.25.0.1/24',
  ),
  'trusted_domains' => 
  array (
    0 => 'xxxx',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '22.1.0.1',
  'overwritehost' => 'xxxx',
  'overwrite.cli.url' => 'https://xxxx',
  'overwriteprotocol' => 'https',
  'dbname' => 'nextcloud',
  'dbhost' => 'db',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'nextcloud',
  'installed' => true,
);```

hello @r00tiek welcome to the community :handshake:

please provide your docker (compose) config. You will find apache logs using docker logs {container name}. your config indicates you are on version 22?! how this could happen on new installation?

Please follow this articles for smooth installation