title: Deploy Symfony API on Apache - routes not found
body: <p>I tried to deploy a Symfony API with apache on port 8000. I can access the index.php (Symfony default page), but when I tried a route like http://{{ my_ip_adress }}:8000/api/users, I have a 404 error.</p>
  <p><strong>Apache file.conf</strong></p>
  <pre><code>Listen 8000
  &lt;VirtualHost *:{{ http_port }}&gt;
      DocumentRoot /var/www/{{ http_host }}
      ErrorLog ${APACHE_LOG_DIR}/error.log
      CustomLog ${APACHE_LOG_DIR}/access.log combined
  
      &lt;Directory /var/www/{{ http_host }}&gt;
         Options Indexes FollowSymLinks
          AllowOverride All
          Allow from All
      &lt;/Directory&gt;
  
      &lt;IfModule mod_dir.c&gt;
          DirectoryIndex ./app/public/index.php 
      &lt;/IfModule&gt;
      
      &lt;IfModule mod_rewrite.c&gt;
          RewriteEngine On
          RewriteBase ./
  
          RewriteCond %{REQUEST_FILENAME} !-f
          RewriteRule ./app/public/index.php
  
      &lt;/IfModule&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  <p>It's my first deployment, so I don't understand how Apache works yet.</p>