Virtual host issue with Apache 2.4 (and not with 2.2)

I have a Synology NAS running PHP 7 and Apache 2.4. I’ve installate Nextcloud 11 in web folder and it worked like a charm… Later I modified the virtual host in order to reach nextcloud directly with the URL and I started having problems.
First I received the error “file not found” and I tried to understand the problem… but quickly I excluded a problem due to nextcloud configuration or network configuration… So I tried to run Apache 2.2 insted of 2.4 and the problem disappeared, showing me the login page.
I saw the configuration file in sites-enabled with virtual host is partially different if I use Apache 2.4 or 2.2 and I think the problem is here… but I don’t understand where.
Has anyone had a similar issue?

Some things to consider moving from Apache 2.2 to Apache 2.4:

Sorry but I don’t find the part that interest to me…

Moreover I want to specify that when I use Apache 2.4 the main screen (background) loads but it doesn’t show the login box…

Take a look in your webserver logfiles, the error console in your browser can be helpful to identify which resources failed to load.

It tells this…
But this appear even with apache 2.2 and 2.4
JQMIGRATE: Migrate is installed, version 1.4.0 jquery-migrate.min.js:2:542

when it gets …/index.php/login it says 404 not found…
I’m going mad

It would be helpful if you post the virtual host container for the Nextcloud instance with Apache 2.4 (httpd.conf or/and httpd-vhosts.conf or/and httpd-ssl.conf, whichever is used).

Here it is

I have the same issue, Apache 2.4 without a vhost works, Apache 2.4 + vhost doesn’t work.
Before the last Nextcloud update Apache 2.4 without vhost also didn’t work.