I installed the Drupal website in this path:


Below I show the virtual host configuration file testdrupal.localhost:

<Directory /var/www/html/testdrupal.localhost>
    Require all granted
<VirtualHost *:80>
    ServerName testdrupal.localhost
    ServerAlias www.testdrupal.localhost
    ServerAdmin webmaster@localhost
    DocumentRoot /var/www/html/testdrupal.localhost/public_html/drupal/web

    ErrorLog /var/www/html/testdrupal.localhost/logs/error.log
    CustomLog /var/www/html/testdrupal.localhost/logs/access.log combined


When I access the url www.testdrupal.localhost I correctly see the start page of Drupal, but when I click on the login link, I get a 404 error.

The URL shown on the browser's address bar is:


I also verified that:

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.