Nextcloud suddenly throws 403 Forbidden error

My Nextcloud instance started giving me a 403 Forbidden error message.

Output of occ status:

- installed: true
- version: 24.0.3.2
- versionstring: 24.0.3
- edition:
- maintenance: false
- needsDbUpgrade: false
- productname: Nextcloud
- extendedSupport: false

Operating System: Ubuntu 20.04
Apache: 2.4.41
PHP: 7.4.3

The issue you are facing:
The specific error is thrown: 403 Forbidden. You don’t have permission to access this resource. Apache/2.4.41 (Ubuntu) Server at URL Port 443 This started this morning and I haven’t changed anything in my config before this. The instance worked yesterday evening.
Currently I can not access anything on my Nextcloud. Not via the browser, not via GNOME integration and Android apps.
This error occurs on port 443, 80, access via domain and access via IP.

As I am currently not at home, I do not have access to ssh into the server. I have access to the webconsole and copied the following logs/files by typing.

Is this the first time you’ve seen this error? Y

The output of your Nextcloud log in Admin > Logging:
Not available as I can't access the Admin page.

The config.php:

<?php
$CONFIG = array {
   'instanceID' => '   ',
   'passwordsalt' => '   ',
   'secret' => '   ',
   'trusted_domains' =>
   array (
   0 => 'IP_ADDR'
   1 => 'URL',
   )
   'datadirectory' => '/var/www/nextcloud/data',
   'dbtype' => 'mysql',
   'version' => '24.0.3.2',
   'overwrite.client.url' => 'http://IP_ADDR',
   'dbname' => 'nextcloud',
   'dbhost' => 'localhost',
   'dbport' => '',
   'dbtableprefix`=> 'oc_',
   'mysql.utf8mb4' => true,
   'dbuser' => 'nextcloud',
   'dbpassword' => '   ',
   'installed' => 'true',
   'memcache.local' => '\\OC\MemcachePCu',
   'maintenance' => 'false',
   'theme' => '',
   'loglevel' => 2,
   'mail_domain' => '   ',
   'mail_from_address' => '   ',
   'mail_smtpmode' => 'smtp',
   'mail_smtpauthtype' => 'PLAIN',
   'mail_sendmailtype' => 'smtp',
   'mail_smtphost`=> '   ',
   'mail_smtpport' => '587',
   'mail_smtpauth' => 1,
   'mail_smtpname' => '   ',
   'mail_smtppassword' => '   ',
    'mail_smtpsecure' => 'tls',
   'updater.release.channel' => 'stable',
   'updater.secret' => '   '

I replaced sensitive information with ’ '.

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

[Sun Jul 31 12:59:45.188778 2022] [access_compat:error] [pid 2632] [client IP_ADDR] AHO1797: client denied by server configuration: /var/www/nextcloud/remote.php

I have similar errors with

/var/www/nextcloud/index.php
/var/www/nextcloud/wp-login.php

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.
I do not find the nextcloud.log file, only my apache log file

My Apache config:

<Virtualhost *80:>
   DocumentRoot "/var/www/nextcloud"
   ServerName nextcloud.URL

   <Directory "/var/www/nextcloud/">
      Options MultiViews FollowSymlinks
      AllowOverride All
      Order allow,deny
      Allow from all
   </Directory>

   TransferLog /var/log/apache2/nextcloud.log
   ErrorLog /var/log/apache2/nextcloud.log

RewriteEngine on
RewriteCond %{SERVER_NAME} =nextcloud.URL
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</Virtualhost>

To me it seems like there is a problem with my *.php files, or my Apache config, but I do not know.