Web server is not properly configured to allow "/.well-known/webfinger"

Nextcloud version: Nextcloud Hub 5 (27.0.0)
Operating system and version: Ubuntu 22.04
Apache version: Apache/2.4.52
PHP version: PHP 8.1.2

The issue you are facing:
When checking parameters and security, I encounter the following error:
The web server is not properly configured to allow “/.well-known/webfinger”.

Is this the first time you’ve seen this error?: N

Steps to replicate it:

  1. Installed NextCloud and all related software
  2. Configured the .htaccess file

The output of your Nextcloud log in Admin > Logging:

The nextcloud web interface tells me that the log is empty and the server is running normally

The output of your config.php file in /path/to/nextcloud :

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

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.

This log is empty