I'm completely new to Craft CMS, I come from the Drupal/Wordpress corner.
On my Ubuntu 20.04 LTS with PHP, MySQL, Apache and Composer installed.
Using Composer I installed craftcms to /var/www/html/testsite/
In /etc/apache2/sites-available/000-default.conf
I changed the DocumentRoot to point to /var/www/html/testsite/web
In the browser I point to 127.0.0.1
and I get the Welcome page.
When I click on Go to your control panel I am taken to 127.0.0.1/admin
with the following error:
Not Found The requested URL was not found on this server.
In my /var/www/html/testsite/.env
file I have PRIMARY_SITE_URL=http://localhost/testsite/web/
What am I missing? (I have looked at other similar questions here but did not find anything helpful for my specific case).