title: Symfony 3, domain name shows Directory Structure
body: <p>I know this question is asked a lot but I read all the questions related to this but they didn't solve my problem.</p>
  
  <p>I just deployed a Symfony 3 web app and I followed the <a href="https://symfony.com/doc/current/setup/web_server_configuration.html" rel="nofollow noreferrer">Symfony server configuration documentation</a> just to find out that the www.domain.com displays the directory structure!</p>
  
  <p>Here's the configuration that I used of file <code>/etc/apache2/sites-available/site.com.conf</code>:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
  ServerName domain.tld
  ServerAlias www.domain.tld
  
  DocumentRoot /var/www/project/web
  &lt;Directory /var/www/project/web&gt;
      AllowOverride None
      Order Allow,Deny
      Allow from All
  
      &lt;IfModule mod_rewrite.c&gt;
          Options -MultiViews
          RewriteEngine On
          RewriteCond %{REQUEST_FILENAME} !-f
          RewriteRule ^(.*)$ app.php [QSA,L]
      &lt;/IfModule&gt;
  &lt;/Directory&gt;
  
  
  ErrorLog /var/log/apache2/project_error.log
  CustomLog /var/log/apache2/project_access.log combined
  </code></pre>
  
  <p></p>
  
  <p>I can see the app when I go to www.domain.com/web and www.domain.com/web/app.php</p>
  
  <p>I want to be able to visit www.domain.com and see the app.</p>