title: Symfony2 + Nginx 404 not found
body: <p>I'm having trouble configuring Symfony2 with nginx</p>
  
  <p>I installed symfony2 like this </p>
  
  <blockquote>
    <p>php composer.phar create-project symfony/framework-standard-edition /var/www/symf</p>
  </blockquote>
  
  <p>everything went smoothly, when i'm on the config page no erros
  <img src="https://i.stack.imgur.com/yfAY7.png" alt="enter image description here"></p>
  
  <p>but when i click Configure online or Buypass config i'm landing on nginx 404 NOT FOUND</p>
  
  <p>here is the config file </p>
  
  <pre><code>upstream phpfcgi {
  server 127.0.0.1:9000;
  }
  
  server {
  listen 80;
  
  server_name localhost;
  root /var/www/symf/web;
  
  error_log /var/log/nginx/symfony2.error.log;
  access_log /var/log/nginx/symfony2.access.log;
  
  # strip app.php/ prefix if it is present
  rewrite ^/app\.php/?(.*)$ /$1 permanent;
  
  location / {
      index app.php;
      try_files $uri @rewriteapp;
  }
  
  location @rewriteapp {
      rewrite ^(.*)$ /app.php/$1 last;
  }
  
  # pass the PHP scripts to FastCGI server from upstream phpfcgi
  location ~ ^/(app|app_dev|config)\.php(/|$) {
      fastcgi_pass phpfcgi;
      fastcgi_split_path_info ^(.+\.php)(/.*)$;
      include fastcgi_params;
      fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
      fastcgi_param  HTTPS off;
  }
  }
  </code></pre>
  
  <p>Note : i noticed when clicking buypass i'm landing on a link like ....symf/web/app_dev.php/
  removing last / allow me to reach the page but got and error
  <img src="https://i.stack.imgur.com/Q0beM.png" alt="enter image description here">
  clicking ok -> 404 no found</p>
  
  <p>i'm i missing something ?</p>
  
  <p>parameters.yml</p>
  
  <pre><code>    database_driver: pdo_mysql
  database_host: 127.0.0.1
  database_port: null
  database_name: symfony
  database_user: root
  database_password: *****
  mailer_transport: smtp
  mailer_host: 127.0.0.1
  mailer_user: null
  mailer_password: null
  locale: fr
  secret: ******
  debug_toolbar: true
  debug_redirects: false
  use_assetic_controller: true
  </code></pre>