Zend certified PHP/Magento developer

Magento 2.3.4 with sample data returns always 404

I have installed Magento 2.3.4 on Ubuntu 18.04 without any issue. I get the Success page for the installation and the url for the store and the admin page.

both the urls return 404.

I checked access.log and error.log with no issues displayed. I tried to check different questions but mod_rewrite is enabled, the htaccess is as expected and as displayed in other questions but I have no luck.

I don’t know where to look at to identify a cause for this issue. Any hint?