title: Symfony routing: only `/` page is working
body: <p>I'm having a strange symfony problem.
  I'm trying to play with Symfony 3.4 and nginx.</p>
  
  <p>I follow the "Create your First Page" tutorial but, only**/symfony/Symfony/web/app_dev.php** page is working
  when I using URL <strong>/symfony/Symfony/web/app_dev.php/lucky/number</strong>, IT SHOW </p>
  
  <blockquote>
    <p>"nginx error! The page you are looking for is not found."</p>
  </blockquote>
  
  <p>LuckyController.php</p>
  
  <pre><code>&lt;?php
  // src/AppBundle/Controller/LuckyController.php
  namespace AppBundle\Controller;
  
  use Symfony\Component\Routing\Annotation\Route;
  use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  use Symfony\Component\HttpFoundation\Response;
  
  class LuckyController extends Controller
  {
      /**
       * @Route("/lucky/number", name="luckyNumber")
       */
      public function numberAction()
      {
          $number = random_int(0, 100);
  
          return $this-&gt;render('lucky/number.html.twig', [
              'number' =&gt; $number,
          ]);
      }
  }
  </code></pre>
  
  <p>nginx.conf</p>
  
  <pre><code>server {
          listen       80;
          server_name  domain.tld www.domain.tld;
          root /usr/share/nginx/html/;
  
          location / {
          try_files $uri /index.php$is_args$args;
          }
  
          error_page 404 /404.html;
              location = /40x.html {
          }
  
          error_page 500 502 503 504 /50x.html;
              location = /50x.html {
          }
  
          location ~ ^/index\.php(/|$) {
          fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
          fastcgi_split_path_info ^(.+\.php)(/.*)$;
          include fastcgi_params;
          fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
          fastcgi_param DOCUMENT_ROOT $realpath_root;
          internal;
          }
  
          location ~ \.php$ {
          return 404;
          }
  
          error_log /var/log/nginx/project_error.log;
          access_log /var/log/nginx/project_access.log;
      }
  </code></pre>
  
  <p>routing.yml</p>
  
  <pre><code>app:
      resource: '@AppBundle/Controller/'
      type: annotation
  </code></pre>