Nextcloud not available any more (neither internal nor external)

Nextcloud version (eg, 20.0.5): nextcloud Pi version 1.39.6, 21.0.4.1
Operating system and version (eg, Ubuntu 20.04): raspian
Apache or nginx version (eg, Apache 2.4.25): don’t know how to get
PHP version (eg, 7.4): 7.3.29

The issue you are facing:
I can connect to the nextcloud pi panel via 192.168.178.19:4443 but the access to https:\192.168.178.19:4433 where my nextcloud resides failes. The fail occurs after updating the raspian OS. The access from outside fails as well (did run before).

The output of your Nextcloud log in Admin > Logging:

Don't know how to get.

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

Can't access /var/www/nextcloud even not with sudo

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

CAn't access /var/log/apache2

I don’t know much about nextcloud Pi, maybe it provides some log file access in its web interface (the :4443 page), have you checked all the available options there?

If it turns out you need to look closer at the underlying linux system, you will probably need to enable ssh on your nextloud Pi and use an ssh client (for example, putty, if the computer you want to connect from is running windows) to connect to your nextcloud Pi look around for entries in log files (for example the files in /var/log/apache2) via ssh (see for example the basic terminal commands ssh information in the nextcloud Pi documentation).

ok, here is the config.php:

<?php
$CONFIG = array (
  'passwordsalt' => 'xxx',
  'secret' => 'xxx',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => '192.168.178.19',
    2 => 'mydns',
    3 => 'raspberrypi-iob',
    11 => '
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Apache2 Debian Default Page: It works</title>
    <style type="text/css" media="screen">
  * {
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
  }

  body, html {
    padding: 3px 3px 3px 3px;

    background-color: #D8DBE2;

    font-family: Verdana, sans-serif;
    font-size: 11pt;
    text-align: center;
  }

  div.main_page {
    position: relative;
    display: table;

    width: 800px;

    margin-bottom: 3px;
    margin-left: auto;
    margin-right: auto;
    padding: 0px 0px 0px 0px;

    border-width: 2px;
    border-color: #212738;
    border-style: solid;

    background-color: #FFFFFF;

    text-align: center;
  }

  div.page_header {
    height: 99px;
    width: 100%;

    background-color: #F5F6F7;
  }

  div.page_header span {
    margin: 15px 0px 0px 50px;

    font-size: 180%;
    font-weight: bold;
  }

  div.page_header img {
    margin: 3px 0px 0px 40px;

    border: 0px 0px 0px;
  }

  div.table_of_contents {
    clear: left;

    min-width: 200px;

    margin: 3px 3px 3px 3px;

    background-color: #FFFFFF;

    text-align: left;
  }

  div.table_of_contents_item {
    clear: left;

    width: 100%;

    margin: 4px 0px 0px 0px;

    background-color: #FFFFFF;

    color: #000000;
    text-align: left;
  }

  div.table_of_contents_item a {
    margin: 6px 0px 0px 6px;
  }

  div.content_section {
    margin: 3px 3px 3px 3px;

    background-color: #FFFFFF;

    text-align: left;
  }

  div.content_section_text {
    padding: 4px 8px 4px 8px;

    color: #000000;
    font-size: 100%;
  }

  div.content_section_text pre {
    margin: 8px 0px 8px 0px;
    padding: 8px 8px 8px 8px;

    border-width: 1px;
    border-style: dotted;
    border-color: #000000;

    background-color: #F5F6F7;

    font-style: italic;
  }

  div.content_section_text p {
    margin-bottom: 6px;
  }

  div.content_section_text ul, div.content_section_text li {
    padding: 4px 8px 4px 16px;
  }

  div.section_header {
    padding: 3px 6px 3px 6px;

    background-color: #8E9CB2;

    color: #FFFFFF;
    font-weight: bold;
    font-size: 112%;
    text-align: center;
  }

  div.section_header_red {
    background-color: #CD214F;
  }

  div.section_header_grey {
    background-color: #9F9386;
  }

  .floating_element {
    position: relative;
    float: left;
  }

  div.table_of_contents_item a,
  div.content_section_text a {
    text-decoration: none;
    font-weight: bold;
  }

  div.table_of_contents_item a:link,
  div.table_of_contents_item a:visited,
  div.table_of_contents_item a:active {
    color: #000000;
  }

  div.table_of_contents_item a:hover {
    background-color: #000000;

    color: #FFFFFF;
  }

  div.content_section_text a:link,
  div.content_section_text a:visited,
   div.content_section_text a:active {
    background-color: #DCDFE6;

    color: #000000;
  }

  div.content_section_text a:hover {
    background-color: #000000;

    color: #DCDFE6;
  }

  div.validator {
  }
    </style>
  </head>
  <body>
    <div class="main_page">
      <div class="page_header floating_element">
        <img src="/icons/openlogo-75.png" alt="Debian Logo" class="floating_element"/>
        <span class="floating_element">
          Apache2 Debian Default Page
        </span>
      </div>
<!--      <div class="table_of_contents floating_element">
        <div class="section_header section_header_grey">
          TABLE OF CONTENTS
        </div>
        <div class="table_of_contents_item floating_element">
          <a href="#about">About</a>
        </div>
        <div class="table_of_contents_item floating_element">
          <a href="#changes">Changes</a>
        </div>
        <div class="table_of_contents_item floating_element">
          <a href="#scope">Scope</a>
        </div>
        <div class="table_of_contents_item floating_element">
          <a href="#files">Config files</a>
        </div>
      </div>
-->
      <div class="content_section floating_element">


        <div class="section_header section_header_red">
          <div id="about"></div>
          It works!
        </div>
        <div class="content_section_text">
          <p>
                This is the default welcome page used to test the correct
                operation of the Apache2 server after installation on Debian systems.
                If you can read this page, it means that the Apache HTTP server installed at
                this site is working properly. You should <b>replace this file</b> (located at
                <tt>/var/www/html/index.html</tt>) before continuing to operate your HTTP server.
          </p>


          <p>
                If you are a normal user of this web site and don\'t know what this page is
                about, this probably means that the site is currently unavailable due to
                maintenance.
                If the problem persists, please contact the site\'s administrator.
          </p>

        </div>
        <div class="section_header">
          <div id="changes"></div>
                Configuration Overview
        </div>
        <div class="content_section_text">
          <p>
                Debian\'s Apache2 default configuration is different from the
                upstream default configuration, and split into several files optimized for
                interaction with Debian tools. The configuration system is
                <b>fully documented in
                /usr/share/doc/apache2/README.Debian.gz</b>. Refer to this for the full
                documentation. Documentation for the web server itself can be
                found by accessing the <a href="/manual">manual</a> if the <tt>apache2-doc</tt>
                package was installed on this server.

          </p>
          <p>
                The configuration layout for an Apache2 web server installation on Debian systems is as follows:
          </p>
          <pre>
/etc/apache2/
|-- apache2.conf
|       `--  ports.conf
|-- mods-enabled
|       |-- *.load
|       `-- *.conf
|-- conf-enabled
|       `-- *.conf
|-- sites-enabled
|       `-- *.conf
          </pre>
          <ul>
                        <li>
                           <tt>apache2.conf</tt> is the main configuration
                           file. It puts the pieces together by including all remaining configuration
                           files when starting up the web server.
                        </li>

                        <li>
                           <tt>ports.conf</tt> is always included from the
                           main configuration file. It is used to determine the listening ports for
                           incoming connections, and this file can be customized anytime.
                        </li>

                        <li>
                           Configuration files in the <tt>mods-enabled/</tt>,
                           <tt>conf-enabled/</tt> and <tt>sites-enabled/</tt> directories contain
                           particular configuration snippets which manage modules, global configuration
                           fragments, or virtual host configurations, respectively.
                        </li>

                        <li>
                           They are activated by symlinking available
                           configuration files from their respective
                           *-available/ counterparts. These should be managed
                           by using our helpers
                           <tt>
                                a2enmod,
                                a2dismod,
                           </tt>
                           <tt>
                                a2ensite,
                                a2dissite,
                            </tt>
                                and
                           <tt>
                                a2enconf,
                                a2disconf
                           </tt>. See their respective man pages for detailed information.
                        </li>

                        <li>
                           The binary is called apache2. Due to the use of
                           environment variables, in the default configuration, apache2 needs to be
                           started/stopped with <tt>/etc/init.d/apache2</tt> or <tt>apache2ctl</tt>.
                           <b>Calling <tt>/usr/bin/apache2</tt> directly will not work</b> with the
                           default configuration.
                        </li>
          </ul>
        </div>

        <div class="section_header">
            <div id="docroot"></div>
                Document Roots
        </div>

        <div class="content_section_text">
            <p>
                By default, Debian does not allow access through the web browser to
                <em>any</em> file apart of those located in <tt>/var/www</tt>,
                <a href="http://httpd.apache.org/docs/2.4/mod/mod_userdir.html" rel="nofollow">public_html</a>
                directories (when enabled) and <tt>/usr/share</tt> (for web
                applications). If your site is using a web document root
                located elsewhere (such as in <tt>/srv</tt>) you may need to whitelist your
                document root directory in <tt>/etc/apache2/apache2.conf</tt>.
            </p>
            <p>
                The default Debian document root is <tt>/var/www/html</tt>. You
                can make your own virtual hosts under /var/www. This is different
                to previous releases which provides better security out of the box.
            </p>
        </div>

        <div class="section_header">
          <div id="bugs"></div>
                Reporting Problems
        </div>
        <div class="content_section_text">
          <p>
                Please use the <tt>reportbug</tt> tool to report bugs in the
                Apache2 package with Debian. However, check <a
                href="http://bugs.debian.org/cgi-bin/pkgreport.cgi?ordering=normal;archive=0;src=apache2;repeatmerged=0"
                rel="nofollow">existing bug reports</a> before reporting a new bug.
          </p>
          <p>
                Please report bugs specific to modules (such as PHP and others)
                to respective packages, not to the web server itself.
          </p>
        </div>




      </div>
    </div>
    <div class="validator">
    </div>
  </body>
</html>',
    5 => 'nextcloudpi.local',
    7 => 'nextcloudpi',
    8 => 'nextcloudpi.lan',
    20 => 'mydns',
    12 => 'mydns',
    21 => 'https://mydns',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '21.0.4.1',
  'overwriteprotocol' => 'https',
  'overwrite.cli.url' => 'https://mydns/',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'ncadmin',
  'dbpassword' => 'xxx',
  'installed' => true,
  'instanceid' => 'ocerw4in4l88',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
    'password' => 'xxx',
  ),
  'tempdirectory' => '/var/www/nextcloud/data/tmp',
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => 'mail',
  'mail_domain' => 'xxx.de',
  'loglevel' => '2',
  'log_type' => 'file',
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' =>
  array (
  ),
  'twofactor_enforced_excluded_groups' =>
  array (
  ),
  'allow_local_remote_servers' => true,
  'maintenance' => false,
  'htaccess.RewriteBase' => '/',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'mx2f0b.netcup.net',
  'mail_smtpport' => '465',
  'mail_smtpname' => 'xxx@xxx.de',
  'mail_smtppassword' => 'xxx',
  'trusted_proxies' =>
  array (
    11 => '127.0.0.1',
    12 => '::1',
    13 => 'raspberrypi-iob',
    14 => '127.0.0.1',
  ),
);
root@raspberrypi-iob:

Hope that helpls. If you need more information please let me know

And here is the error log of the apache2 directory:

[Fri Sep 24 00:00:08.825234 2021] [ssl:warn] [pid 1372:tid 3066700352] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Fri Sep 24 00:00:08.827780 2021] [mpm_event:notice] [pid 1372:tid 3066700352] AH00489: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d   configured -- resuming normal operations
[Fri Sep 24 00:00:08.827824 2021] [core:notice] [pid 1372:tid 3066700352] AH00094: Command line: '/usr/sbin/apache2'
[Fri Sep 24 04:00:01.278382 2021] [mpm_event:notice] [pid 1372:tid 3066700352] AH00491: caught SIGTERM, shutting down
[Fri Sep 24 04:00:23.007716 2021] [ssl:warn] [pid 1224:tid 3066819136] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Fri Sep 24 04:00:23.010537 2021] [:notice] [pid 1224:tid 3066819136] ModSecurity for Apache/2.9.3 (http://www.modsecurity.org/) configured.
[Fri Sep 24 04:00:23.010586 2021] [:notice] [pid 1224:tid 3066819136] ModSecurity: APR compiled version="1.6.5"; loaded version="1.6.5"
[Fri Sep 24 04:00:23.010607 2021] [:notice] [pid 1224:tid 3066819136] ModSecurity: PCRE compiled version="8.39 "; loaded version="8.39 2016-06-14"
[Fri Sep 24 04:00:23.010623 2021] [:notice] [pid 1224:tid 3066819136] ModSecurity: LUA compiled version="Lua 5.1"
[Fri Sep 24 04:00:23.010638 2021] [:notice] [pid 1224:tid 3066819136] ModSecurity: YAJL compiled version="2.1.0"
[Fri Sep 24 04:00:23.010653 2021] [:notice] [pid 1224:tid 3066819136] ModSecurity: LIBXML compiled version="2.9.4"
[Fri Sep 24 04:00:23.010668 2021] [:notice] [pid 1224:tid 3066819136] ModSecurity: Original server signature: Apache
[Fri Sep 24 04:00:23.010783 2021] [:notice] [pid 1224:tid 3066819136] ModSecurity: StatusEngine call: "2.9.3,Apache,1.6.5/1.6.5,8.39/8.39 2016-06-14,Lua 5.1,2.9.4,1c"
[Fri Sep 24 04:00:23.012418 2021] [:notice] [pid 1224:tid 3066819136] ModSecurity: StatusEngine call failed. Query: GIXDSLRTFRAXAYLDNBSSYMJOGYXDKLZR.FY3C4NJMHAXDGOJPHAXDGOJAGIYDCNRN.GA3C2MJUFRGHKYJAGUXDCLBSFY4S4NBM.GFRQ.1632448823.status.modsecurity.org
[Fri Sep 24 04:00:23.229286 2021] [ssl:warn] [pid 1377:tid 3066819136] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Fri Sep 24 04:00:23.240119 2021] [mpm_event:notice] [pid 1377:tid 3066819136] AH00489: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d   configured -- resuming normal operations
[Fri Sep 24 04:00:23.240235 2021] [core:notice] [pid 1377:tid 3066819136] AH00094: Command line: '/usr/sbin/apache2'
[Fri Sep 24 04:10:44.747140 2021] [authz_host:error] [pid 1392:tid 2995794944] [client 192.168.178.33:50494] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name
[Fri Sep 24 04:10:59.649388 2021] [authz_host:error] [pid 1404:tid 2702050304] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name
[Fri Sep 24 04:10:59.736958 2021] [authz_host:error] [pid 1404:tid 2702050304] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name
[Fri Sep 24 04:10:59.738196 2021] [authz_host:error] [pid 1404:tid 2702050304] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /index.php failed, reason: unable to get the remote host name
[Fri Sep 24 04:10:59.821807 2021] [authz_host:error] [pid 1404:tid 2702050304] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /index.php failed, reason: unable to get the remote host name
[Fri Sep 24 04:11:01.526828 2021] [authz_host:error] [pid 1404:tid 2727228416] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /js/minified.js failed, reason: unable to get the remote host name
[Fri Sep 24 04:11:01.529284 2021] [authz_host:error] [pid 1404:tid 2760799232] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /js/ncp.js failed, reason: unable to get the remote host name
[Fri Sep 24 04:11:01.530300 2021] [authz_host:error] [pid 1404:tid 2811155456] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /img/ncp-logo.svg failed, reason: unable to get the remote host name
[Fri Sep 24 04:11:01.530923 2021] [authz_host:error] [pid 1404:tid 2802762752] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /css/ncp.css failed, reason: unable to get the remote host name
[Fri Sep 24 04:11:01.530800 2021] [authz_host:error] [pid 1404:tid 2819548160] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /img/loading-small.gif failed, reason: unable to get the remote host name
[Fri Sep 24 04:11:01.562618 2021] [:error] [pid 1404:tid 2727228416] [client 192.168.178.33:52156] [client 192.168.178.33] ModSecurity: Warning. Pattern match "^[\\\\d.:]+$" at REQUEST_HEADERS:Host. [file "/usr/share/modsecurity-crs/rules/REQUEST-920-PROTOCOL-ENFORCEMENT.conf"] [line "792"] [id "920350"] [msg "Host header is a numeric IP address"] [data "192.168.178.19:4443"] [severity "WARNING"] [ver "OWASP_CRS/3.1.0"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-protocol"] [tag "OWASP_CRS/PROTOCOL_VIOLATION/IP_HOST"] [tag "WASCTC/WASC-21"] [tag "OWASP_TOP_10/A7"] [tag "PCI/6.5.10"] [hostname "192.168.178.19"] [uri "/icons/openlogo-75.png"] [unique_id "YU0ztRQMuR5dZSwoveU9cQAARAQ"]
[Fri Sep 24 04:11:01.563453 2021] [authz_host:error] [pid 1404:tid 2802762752] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /img/toggle.svg failed, reason: unable to get the remote host name
[Fri Sep 24 04:11:01.563452 2021] [authz_host:error] [pid 1404:tid 2760799232] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /img/defaults.svg failed, reason: unable to get the remote host name
[Fri Sep 24 04:11:01.564428 2021] [authz_host:error] [pid 1404:tid 2702050304] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /img/poweroff.svg failed, reason: unable to get the remote host name
[Fri Sep 24 04:11:01.575958 2021] [authz_host:error] [pid 1404:tid 2945438720] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /img/defaults-white.svg failed, reason: unable to get the remote host name, referer: https://192.168.178.19:4443/css/ncp.css
[Fri Sep 24 04:11:01.576592 2021] [authz_host:error] [pid 1404:tid 2802762752] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /img/search.svg failed, reason: unable to get the remote host name, referer: https://192.168.178.19:4443/css/ncp.css
[Fri Sep 24 04:11:01.576818 2021] [authz_host:error] [pid 1404:tid 2819548160] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /img/dashboard.svg failed, reason: unable to get the remote host name, referer: https://192.168.178.19:4443/css/ncp.css
[Fri Sep 24 04:11:01.577436 2021] [authz_host:error] [pid 1404:tid 2811155456] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /img/nc-button.svg failed, reason: unable to get the remote host name, referer: https://192.168.178.19:4443/css/ncp.css
[Fri Sep 24 04:11:01.582848 2021] [authz_host:error] [pid 1404:tid 2802762752] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /img/wizard.svg failed, reason: unable to get the remote host name, referer: https://192.168.178.19:4443/css/ncp.css
[Fri Sep 24 04:11:01.587085 2021] [authz_host:error] [pid 1404:tid 2962224128] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /img/reboot.svg failed, reason: unable to get the remote host name
[Fri Sep 24 04:11:01.587994 2021] [authz_host:error] [pid 1404:tid 2693657600] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /img/info-white.svg failed, reason: unable to get the remote host name, referer: https://192.168.178.19:4443/css/ncp.css
[Fri Sep 24 04:11:01.590559 2021] [authz_host:error] [pid 1404:tid 2760799232] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Fri Sep 24 04:11:01.591744 2021] [authz_host:error] [pid 1404:tid 2819548160] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /img/files.svg failed, reason: unable to get the remote host name, referer: https://192.168.178.19:4443/css/ncp.css
[Fri Sep 24 04:11:01.594916 2021] [authz_host:error] [pid 1404:tid 2811155456] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Fri Sep 24 04:11:01.597107 2021] [authz_host:error] [pid 1404:tid 2945438720] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /img/settings-white.svg failed, reason: unable to get the remote host name, referer: https://192.168.178.19:4443/css/ncp.css
[Fri Sep 24 04:11:01.859855 2021] [authz_host:error] [pid 1404:tid 2945438720] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /img/favicon.png failed, reason: unable to get the remote host name
[Fri Sep 24 04:11:05.852929 2021] [authz_host:error] [pid 1404:tid 2811155456] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Fri Sep 24 04:11:05.873475 2021] [authz_host:error] [pid 1404:tid 2811155456] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Fri Sep 24 04:12:27.894596 2021] [authz_host:error] [pid 1404:tid 2811155456] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /img/info.svg failed, reason: unable to get the remote host name, referer: https://192.168.178.19:4443/css/ncp.css
[Fri Sep 24 04:12:40.962741 2021] [authz_host:error] [pid 1404:tid 2811155456] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Fri Sep 24 04:12:49.957432 2021] [authz_host:error] [pid 1404:tid 2811155456] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /img/red-circle.svg failed, reason: unable to get the remote host name, referer: https://192.168.178.19:4443/css/ncp.css
[Fri Sep 24 04:16:07.443686 2021] [:error] [pid 1392:tid 2616165376] [client 192.168.178.33:52205] [client 192.168.178.33] ModSecurity: Warning. Pattern match "^[\\\\d.:]+$" at REQUEST_HEADERS:Host. [file "/usr/share/modsecurity-crs/rules/REQUEST-920-PROTOCOL-ENFORCEMENT.conf"] [line "792"] [id "920350"] [msg "Host header is a numeric IP address"] [data "192.168.178.19:4433"] [severity "WARNING"] [ver "OWASP_CRS/3.1.0"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-protocol"] [tag "OWASP_CRS/PROTOCOL_VIOLATION/IP_HOST"] [tag "WASCTC/WASC-21"] [tag "OWASP_TOP_10/A7"] [tag "PCI/6.5.10"] [hostname "192.168.178.19"] [uri "/"] [unique_id "YU005yNoxhLiJ9a1ppBc0QAAAAc"]
[Fri Sep 24 04:16:07.485872 2021] [:error] [pid 1392:tid 2607772672] [client 192.168.178.33:52205] [client 192.168.178.33] ModSecurity: Warning. Pattern match "^[\\\\d.:]+$" at REQUEST_HEADERS:Host. [file "/usr/share/modsecurity-crs/rules/REQUEST-920-PROTOCOL-ENFORCEMENT.conf"] [line "792"] [id "920350"] [msg "Host header is a numeric IP address"] [data "192.168.178.19:4433"] [severity "WARNING"] [ver "OWASP_CRS/3.1.0"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-protocol"] [tag "OWASP_CRS/PROTOCOL_VIOLATION/IP_HOST"] [tag "WASCTC/WASC-21"] [tag "OWASP_TOP_10/A7"] [tag "PCI/6.5.10"] [hostname "192.168.178.19"] [uri "/icons/openlogo-75.png"] [unique_id "YU005yNoxhLiJ9a1ppBc0gAAAAg"], referer: http://192.168.178.19:4433/
[Fri Sep 24 04:16:07.527221 2021] [:error] [pid 1392:tid 2599379968] [client 192.168.178.33:52205] [client 192.168.178.33] ModSecurity: Warning. Pattern match "^[\\\\d.:]+$" at REQUEST_HEADERS:Host. [file "/usr/share/modsecurity-crs/rules/REQUEST-920-PROTOCOL-ENFORCEMENT.conf"] [line "792"] [id "920350"] [msg "Host header is a numeric IP address"] [data "192.168.178.19:4433"] [severity "WARNING"] [ver "OWASP_CRS/3.1.0"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-protocol"] [tag "OWASP_CRS/PROTOCOL_VIOLATION/IP_HOST"] [tag "WASCTC/WASC-21"] [tag "OWASP_TOP_10/A7"] [tag "PCI/6.5.10"] [hostname "192.168.178.19"] [uri "/favicon.ico"] [unique_id "YU005yNoxhLiJ9a1ppBc0wAAAAk"], referer: http://192.168.178.19:4433/
[Fri Sep 24 04:18:03.814450 2021] [authz_host:error] [pid 1404:tid 2811155456] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name
[Fri Sep 24 04:18:03.903685 2021] [authz_host:error] [pid 1404:tid 2811155456] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name
[Fri Sep 24 04:18:03.904404 2021] [authz_host:error] [pid 1404:tid 2811155456] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /index.php failed, reason: unable to get the remote host name
[Fri Sep 24 04:18:03.992818 2021] [authz_host:error] [pid 1404:tid 2811155456] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /index.php failed, reason: unable to get the remote host name
[Fri Sep 24 04:18:05.703209 2021] [authz_host:error] [pid 1404:tid 2811155456] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Fri Sep 24 04:18:05.715012 2021] [authz_host:error] [pid 1404:tid 2760799232] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Fri Sep 24 04:18:09.832374 2021] [authz_host:error] [pid 1404:tid 2760799232] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Fri Sep 24 04:18:09.845457 2021] [authz_host:error] [pid 1404:tid 2760799232] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Fri Sep 24 04:31:24.283777 2021] [authz_host:error] [pid 1404:tid 2760799232] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /wizard failed, reason: unable to get the remote host name
[Fri Sep 24 04:31:24.290965 2021] [authz_host:error] [pid 1404:tid 2760799232] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /wizard/ failed, reason: unable to get the remote host name
[Fri Sep 24 04:31:24.376055 2021] [authz_host:error] [pid 1404:tid 2760799232] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /wizard/ failed, reason: unable to get the remote host name
[Fri Sep 24 04:31:24.377221 2021] [authz_host:error] [pid 1404:tid 2760799232] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /wizard/index.php failed, reason: unable to get the remote host name
[Fri Sep 24 04:31:24.462026 2021] [authz_host:error] [pid 1404:tid 2760799232] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /wizard/index.php failed, reason: unable to get the remote host name
[Fri Sep 24 04:31:24.515117 2021] [authz_host:error] [pid 1404:tid 2811155456] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /wizard/CSS/wizard.css failed, reason: unable to get the remote host name, referer: https://192.168.178.19:4443/wizard/
[Fri Sep 24 04:31:24.516109 2021] [authz_host:error] [pid 1404:tid 2945438720] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /wizard/img/ncp-logo.svg failed, reason: unable to get the remote host name, referer: https://192.168.178.19:4443/wizard/
[Fri Sep 24 04:31:24.516544 2021] [authz_host:error] [pid 1404:tid 2819548160] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /wizard/img/nc-logo.png failed, reason: unable to get the remote host name, referer: https://192.168.178.19:4443/wizard/
[Fri Sep 24 04:31:24.521178 2021] [authz_host:error] [pid 1404:tid 2811155456] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /wizard/bootstrap/js/bootstrap.min.js failed, reason: unable to get the remote host name, referer: https://192.168.178.19:4443/wizard/
[Fri Sep 24 04:31:24.522704 2021] [authz_host:error] [pid 1404:tid 2693657600] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /wizard/JS/wizard.js failed, reason: unable to get the remote host name, referer: https://192.168.178.19:4443/wizard/
[Fri Sep 24 04:31:24.524875 2021] [authz_host:error] [pid 1404:tid 2819548160] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /wizard/JS/jquery.bootstrap.wizard.js failed, reason: unable to get the remote host name, referer: https://192.168.178.19:4443/wizard/
[Fri Sep 24 04:31:24.525637 2021] [authz_host:error] [pid 1404:tid 2945438720] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /wizard/JS/jquery-latest.js failed, reason: unable to get the remote host name, referer: https://192.168.178.19:4443/wizard/
[Fri Sep 24 04:31:24.530389 2021] [authz_host:error] [pid 1404:tid 2760799232] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /wizard/bootstrap/css/bootstrap.min.css failed, reason: unable to get the remote host name, referer: https://192.168.178.19:4443/wizard/
[Fri Sep 24 04:31:24.578336 2021] [authz_host:error] [pid 1404:tid 2760799232] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /img/menu.svg failed, reason: unable to get the remote host name, referer: https://192.168.178.19:4443/wizard/CSS/wizard.css
[Fri Sep 24 04:31:24.620528 2021] [authz_host:error] [pid 1404:tid 2945438720] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name, referer: https://192.168.178.19:4443/wizard/
[Fri Sep 24 04:31:52.393148 2021] [authz_host:error] [pid 1404:tid 2945438720] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /favicon.ico failed, reason: unable to get the remote host name, referer: https://192.168.178.19:4443/wizard/
[Fri Sep 24 04:31:54.003407 2021] [authz_host:error] [pid 1404:tid 2945438720] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name, referer: https://192.168.178.19:4443/wizard/
[Fri Sep 24 04:31:54.088435 2021] [authz_host:error] [pid 1404:tid 2945438720] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to / failed, reason: unable to get the remote host name, referer: https://192.168.178.19:4443/wizard/
[Fri Sep 24 04:31:54.089098 2021] [authz_host:error] [pid 1404:tid 2945438720] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /index.php failed, reason: unable to get the remote host name, referer: https://192.168.178.19:4443/wizard/
[Fri Sep 24 04:31:54.174439 2021] [authz_host:error] [pid 1404:tid 2945438720] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /index.php failed, reason: unable to get the remote host name, referer: https://192.168.178.19:4443/wizard/
[Fri Sep 24 04:31:55.526405 2021] [:error] [pid 1404:tid 2819548160] [client 192.168.178.33:52156] [client 192.168.178.33] ModSecurity: Warning. Pattern match "^[\\\\d.:]+$" at REQUEST_HEADERS:Host. [file "/usr/share/modsecurity-crs/rules/REQUEST-920-PROTOCOL-ENFORCEMENT.conf"] [line "792"] [id "920350"] [msg "Host header is a numeric IP address"] [data "192.168.178.19:4443"] [severity "WARNING"] [ver "OWASP_CRS/3.1.0"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-protocol"] [tag "OWASP_CRS/PROTOCOL_VIOLATION/IP_HOST"] [tag "WASCTC/WASC-21"] [tag "OWASP_TOP_10/A7"] [tag "PCI/6.5.10"] [hostname "192.168.178.19"] [uri "/icons/openlogo-75.png"] [unique_id "YU04mxQMuR5dZSwoveU9mQAAUg8"]
[Fri Sep 24 04:31:55.526733 2021] [authz_host:error] [pid 1404:tid 2760799232] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /img/defaults.svg failed, reason: unable to get the remote host name
[Fri Sep 24 04:31:55.527670 2021] [authz_host:error] [pid 1404:tid 2945438720] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /img/toggle.svg failed, reason: unable to get the remote host name
[Fri Sep 24 04:31:55.540398 2021] [authz_host:error] [pid 1404:tid 2819548160] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /ncp-output.php failed, reason: unable to get the remote host name
[Fri Sep 24 04:31:55.548583 2021] [authz_host:error] [pid 1404:tid 2945438720] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Fri Sep 24 04:31:59.607754 2021] [authz_host:error] [pid 1404:tid 2945438720] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Fri Sep 24 04:31:59.623538 2021] [authz_host:error] [pid 1404:tid 2945438720] [client 192.168.178.33:52156] AH01753: access check of 'localhost' to /ncp-launcher.php failed, reason: unable to get the remote host name
[Fri Sep 24 06:39:16.442225 2021] [:error] [pid 1404:tid 2572145664] [client 77.247.108.81:51040] [client 77.247.108.81] ModSecurity: Warning. Pattern match "^[\\\\d.:]+$" at REQUEST_HEADERS:Host. [file "/usr/share/modsecurity-crs/rules/REQUEST-920-PROTOCOL-ENFORCEMENT.conf"] [line "792"] [id "920350"] [msg "Host header is a numeric IP address"] [data "79.215.178.20:443"] [severity "WARNING"] [ver "OWASP_CRS/3.1.0"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-protocol"] [tag "OWASP_CRS/PROTOCOL_VIOLATION/IP_HOST"] [tag "WASCTC/WASC-21"] [tag "OWASP_TOP_10/A7"] [tag "PCI/6.5.10"] [hostname "79.215.178.20"] [uri "/admin/config.php"] [unique_id "YU1WdBQMuR5dZSwoveU9oQAAAEs"]
[Fri Sep 24 06:39:16.443789 2021] [proxy_fcgi:error] [pid 1404:tid 2572145664] [client 77.247.108.81:51040] AH01071: Got error 'Primary script unknown'
[Fri Sep 24 07:28:40.415978 2021] [:error] [pid 1392:tid 2674914304] [client 209.141.62.185:38996] [client 209.141.62.185] ModSecurity: Warning. Pattern match "^[\\\\d.:]+$" at REQUEST_HEADERS:Host. [file "/usr/share/modsecurity-crs/rules/REQUEST-920-PROTOCOL-ENFORCEMENT.conf"] [line "792"] [id "920350"] [msg "Host header is a numeric IP address"] [data "79.215.178.20:443"] [severity "WARNING"] [ver "OWASP_CRS/3.1.0"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-protocol"] [tag "OWASP_CRS/PROTOCOL_VIOLATION/IP_HOST"] [tag "WASCTC/WASC-21"] [tag "OWASP_TOP_10/A7"] [tag "PCI/6.5.10"] [hostname "79.215.178.20"] [uri "/config/getuser"] [unique_id "YU1iCCNoxhLiJ9a1ppBc2gAAAAA"]
[Fri Sep 24 07:40:26.116162 2021] [mpm_event:notice] [pid 1377:tid 3066819136] AH00491: caught SIGTERM, shutting down
[Fri Sep 24 07:40:26.440291 2021] [ssl:warn] [pid 24020:tid 3066315328] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Fri Sep 24 07:40:26.441668 2021] [:notice] [pid 24020:tid 3066315328] ModSecurity for Apache/2.9.3 (http://www.modsecurity.org/) configured.
[Fri Sep 24 07:40:26.441693 2021] [:notice] [pid 24020:tid 3066315328] ModSecurity: APR compiled version="1.6.5"; loaded version="1.6.5"
[Fri Sep 24 07:40:26.441710 2021] [:notice] [pid 24020:tid 3066315328] ModSecurity: PCRE compiled version="8.39 "; loaded version="8.39 2016-06-14"
[Fri Sep 24 07:40:26.441726 2021] [:notice] [pid 24020:tid 3066315328] ModSecurity: LUA compiled version="Lua 5.1"
[Fri Sep 24 07:40:26.441741 2021] [:notice] [pid 24020:tid 3066315328] ModSecurity: YAJL compiled version="2.1.0"
[Fri Sep 24 07:40:26.441755 2021] [:notice] [pid 24020:tid 3066315328] ModSecurity: LIBXML compiled version="2.9.4"
[Fri Sep 24 07:40:26.441770 2021] [:notice] [pid 24020:tid 3066315328] ModSecurity: Original server signature: Apache
[Fri Sep 24 07:40:26.441846 2021] [:notice] [pid 24020:tid 3066315328] ModSecurity: StatusEngine call: "2.9.3,Apache,1.6.5/1.6.5,8.39/8.39 2016-06-14,Lua 5.1,2.9.4,1c"
[Fri Sep 24 07:40:27.178227 2021] [:notice] [pid 24020:tid 3066315328] ModSecurity: StatusEngine call successfully sent. For more information visit: http://status.modsecurity.org/
[Fri Sep 24 07:40:27.340709 2021] [ssl:warn] [pid 24030:tid 3066315328] AH01909: localhost:4443:0 server certificate does NOT include an ID which matches the server name
[Fri Sep 24 07:40:27.350368 2021] [mpm_event:notice] [pid 24030:tid 3066315328] AH00489: Apache/2.4.38 (Raspbian) OpenSSL/1.1.1d   configured -- resuming normal operations
[Fri Sep 24 07:40:27.350526 2021] [core:notice] [pid 24030:tid 3066315328] AH00094: Command line: '/usr/sbin/apache2'
[Fri Sep 24 07:40:47.480486 2021] [:error] [pid 24031:tid 2674914304] [client 192.168.178.33:51056] [client 192.168.178.33] ModSecurity: Warning. Pattern match "^[\\\\d.:]+$" at REQUEST_HEADERS:Host. [file "/usr/share/modsecurity-crs/rules/REQUEST-920-PROTOCOL-ENFORCEMENT.conf"] [line "792"] [id "920350"] [msg "Host header is a numeric IP address"] [data "192.168.178.19:4433"] [severity "WARNING"] [ver "OWASP_CRS/3.1.0"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-protocol"] [tag "OWASP_CRS/PROTOCOL_VIOLATION/IP_HOST"] [tag "WASCTC/WASC-21"] [tag "OWASP_TOP_10/A7"] [tag "PCI/6.5.10"] [hostname "192.168.178.19"] [uri "/"] [unique_id "YU1k3@n2qJsP9RTa6cxVpgAAAAA"]
[Fri Sep 24 07:40:47.583027 2021] [:error] [pid 24031:tid 2664424448] [client 192.168.178.33:51056] [client 192.168.178.33] ModSecurity: Warning. Pattern match "^[\\\\d.:]+$" at REQUEST_HEADERS:Host. [file "/usr/share/modsecurity-crs/rules/REQUEST-920-PROTOCOL-ENFORCEMENT.conf"] [line "792"] [id "920350"] [msg "Host header is a numeric IP address"] [data "192.168.178.19:4433"] [severity "WARNING"] [ver "OWASP_CRS/3.1.0"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-protocol"] [tag "OWASP_CRS/PROTOCOL_VIOLATION/IP_HOST"] [tag "WASCTC/WASC-21"] [tag "OWASP_TOP_10/A7"] [tag "PCI/6.5.10"] [hostname "192.168.178.19"] [uri "/icons/openlogo-75.png"] [unique_id "YU1k3@n2qJsP9RTa6cxVpwAAAAE"], referer: http://192.168.178.19:4433/
[Fri Sep 24 07:40:47.605938 2021] [:error] [pid 24031:tid 2656031744] [client 192.168.178.33:51056] [client 192.168.178.33] ModSecurity: Warning. Pattern match "^[\\\\d.:]+$" at REQUEST_HEADERS:Host. [file "/usr/share/modsecurity-crs/rules/REQUEST-920-PROTOCOL-ENFORCEMENT.conf"] [line "792"] [id "920350"] [msg "Host header is a numeric IP address"] [data "192.168.178.19:4433"] [severity "WARNING"] [ver "OWASP_CRS/3.1.0"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-protocol"] [tag "OWASP_CRS/PROTOCOL_VIOLATION/IP_HOST"] [tag "WASCTC/WASC-21"] [tag "OWASP_TOP_10/A7"] [tag "PCI/6.5.10"] [hostname "192.168.178.19"] [uri "/favicon.ico"] [unique_id "YU1k3@n2qJsP9RTa6cxVqAAAAAI"], referer: http://192.168.178.19:4433/
[Fri Sep 24 07:43:13.253900 2021] [:error] [pid 24031:tid 2656031744] [client 167.94.138.41:60256] [client 167.94.138.41] ModSecurity: Warning. Pattern match "^[\\\\d.:]+$" at REQUEST_HEADERS:Host. [file "/usr/share/modsecurity-crs/rules/REQUEST-920-PROTOCOL-ENFORCEMENT.conf"] [line "792"] [id "920350"] [msg "Host header is a numeric IP address"] [data "79.215.178.20:443"] [severity "WARNING"] [ver "OWASP_CRS/3.1.0"] [tag "application-multi"] [tag "language-multi"] [tag "platform-multi"] [tag "attack-protocol"] [tag "OWASP_CRS/PROTOCOL_VIOLATION/IP_HOST"] [tag "WASCTC/WASC-21"] [tag "OWASP_TOP_10/A7"] [tag "PCI/6.5.10"] [hostname "79.215.178.20"] [uri "/"] [unique_id "YU1lcen2qJsP9RTa6cxVqQAAAAI"]

[…]

This are not correct parts in a config.php
Please post config.php again or correct it.

Unfortunately the config.php I posted is the one which is stored on my raspi. I just double checked it. Maybe this is causing the error? Could you please give me a hint what’s wrong with the file?

There is a lot of trash (e.g. HTML) in your array-field.

array (
    0 => 'localhost',
    1 => '192.168.178.19',
    2 => 'mydns',
    3 => 'raspberrypi-iob',
    11 => '???',
   5 => 'nextcloudpi.local',
    7 => 'nextcloudpi',
    8 => 'nextcloudpi.lan',
    20 => 'mydns',
    12 => 'mydns',
    21 => 'https://mydns',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '21.0.4.1',

But i think there are also too much entrys in your arry.

Ok, I cleaned it a bit and restarted apache server, but it is still the same behaviour:

<?php
$CONFIG = array (
  'passwordsalt' => 'xxx',
  'secret' => 'xxx',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => '192.168.178.19',
    3 => 'raspberrypi-iob',
    4 => 'nextcloudpi.local',
    5 => 'nextcloudpi',
    6 => 'nextcloudpi.lan',
    7 => 'mydns',
    8 => 'https://mydns',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '21.0.4.1',
  'overwriteprotocol' => 'https',
  'overwrite.cli.url' => 'https://mydns',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'ncadmin',
  'dbpassword' => 'xxx',
  'installed' => true,
  'instanceid' => 'ocerw4in4l88',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
    'password' => 'xxx',
  ),
  'tempdirectory' => '/var/www/nextcloud/data/tmp',
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => 'mail',
  'mail_domain' => 'maildomain.de',
  'loglevel' => '2',
  'log_type' => 'file',
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' =>
  array (
  ),
  'twofactor_enforced_excluded_groups' =>
  array (
  ),
  'allow_local_remote_servers' => true,
  'maintenance' => false,
  'htaccess.RewriteBase' => '/',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'mx2f0b.netcup.net',
  'mail_smtpport' => '465',
  'mail_smtpname' => 'mail@maildomain.de',
  'mail_smtppassword' => 'xxx',
  'trusted_proxies' =>
  array (
    11 => '127.0.0.1',
    12 => '::1',
    13 => 'raspberrypi-iob',
    14 => '127.0.0.1',
  ),
);

OK, I have changed the nextcloud.conf in /etc/apache2/sites-available (the port), and now I can call the cloud again:

DO NOT EDIT! THIS FILE HAS BEEN AUTOMATICALLY GENERATED. CHANGES WILL BE OVERWRITTEN

DocumentRoot /var/www/nextcloud

ServerName mydns

CustomLog /var/log/apache2/nc-access.log combined

ErrorLog /var/log/apache2/nc-error.log

SSLEngine on

SSLProxyEngine on

SSLCertificateFile /etc/letsencrypt/live/bernd.dyndns.info/fullchain.pem

SSLCertificateKeyFile /etc/letsencrypt/live/bernd.dyndns.info/privkey.pem

For notify_push app in NC21

ProxyPass /push/ws ws://127.0.0.1:7867/ws

ProxyPass /push/ http://127.0.0.1:7867/

ProxyPassReverse /push/ http://127.0.0.1:7867/

<Directory /var/www/nextcloud/>

Options +FollowSymlinks

AllowOverride All

Dav off

LimitRequestBody 0

SSLRenegBufferSize 10486000

Header always set Strict-Transport-Security “max-age=15768000; includeSubDomains”

Saying that the first line shows “Do not Edit”. Eeeek. But where can I configure that correctly?

A side effect is, that I can’t renew the lets encrypt certificate. This is what I get from nextcloud pi for the renew process:

[ letsencrypt ] (Sat Sep 25 06:20:04 CEST 2021)

Saving debug log to /var/log/letsencrypt/letsencrypt.log

Plugins selected: Authenticator webroot, Installer None

Renewing an existing certificate

Performing the following challenges:

http-01 challenge for mydns

Using the webroot path /var/www/nextcloud for all unmatched domains.

Waiting for verification…

Cleaning up challenges

Failed authorization procedure. mydns (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://bernd.dyndns.info/.well-known/acme-challenge/23R3SpIQYYgZE3pMdFm-rDEo3_zwwvraEGQK69qNsPA [79.215.178.20]: “\n\n404 Not Found\n\n

Not Found

\n<p”

IMPORTANT NOTES:

  • The following errors were reported by the server:

Domain: mydns

Type: unauthorized

Detail: Invalid response from

http://mydns/.well-known/acme-challenge/xxx

[79.215.178.20]: "<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML

2.0//EN">\n\n404 Not

Found\n\n

Not Found

\n<p"

To fix these errors, please make sure that your domain name was

entered correctly and the DNS A/AAAA record(s) for that domain

contain(s) the right IP address.

Any hint how I can fix both things?

Thanks in advance.

Did you move to Debian 11 Bullseye?

No, why are you asking?