title: Not found 404 in Apache2 using the symfony framework
body: <p>I took the configuration from the official website here: <a href="https://symfony.com/doc/current/setup/web_server_configuration.html" rel="nofollow noreferrer">https://symfony.com/doc/current/setup/web_server_configuration.html</a> (the one without using .htaccess), I put it here: /etc/apache2/sites-enabled/000-default.conf. I also changed some paths and now I've got this:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
  ServerName domain.tld
  ServerAlias www.domain.tld
  DocumentRoot /home/shade/Documents/webchat/public
  &lt;Directory /home/shade/Documents/webchat/public&gt;
      AllowOverride None
      Require all granted
      Allow from All
      &lt;IfModule mod_rewrite.c&gt;
          Options -MultiViews
          RewriteEngine On
          RewriteCond %{REQUEST_FILENAME} !-f
          RewriteRule ^(.*)$ index.php [QSA,L]
      &lt;/IfModule&gt;
  &lt;/Directory&gt;
  &lt;Directory /home/shade/Documents/webchat/public&gt;
      &lt;IfModule mod_rewrite.c&gt;
          RewriteEngine Off
      &lt;/IfModule&gt;
  &lt;/Directory&gt;
  ErrorLog /var/log/apache2/project_error.log
  CustomLog /var/log/apache2/project_access.log combined
  </code></pre>
  
  <p>
  When I type in 'localhost', I get the message that there's no route for '/' and that's true (this message is from symfony). But I do have the route for /lucky/number and when I type in 'localhost/lucky/number' I get a 404 Not Found message. What can be wrong with my Apache web server? If I use the built-in php web server, everything works. But I can't figure out what's wrong with Apache.</p>