title: Symfony 2 + Nginx : can't load the web debug toolbar (404: Not Found)
body: <p>I'm new with Linux, PHP, Nginx &amp; Symfony (yes, this will be a long road :) ) and I'm in trouble with creating a new Symfony project.</p>
  
  <p><strong>The problem</strong></p>
  
  <p>I browsed the web and others topics here, but I can't deal with the following message while accessing <code>app_dev.php</code> :</p>
  
  <p><code>An error occurred while loading the web debug toolbar (404: Not Found)
  Do you want to open the profiler?</code></p>
  
  <p>And if I click <code>OK</code>, I'm redirected on <code>http://testsite.local/Symfony/web/app_dev.php/_profiler/f63f84</code> that results in a 404 error.</p>
  
  <p><strong>The config</strong></p>
  
  <p>I have a fresh install of Nginx with fpm that works fine with à standard PHP site.</p>
  
  <p><code>app.php</code> and <code>config.php</code> both work well (no problems spotted in config.php).</p>
  
  <p>Here is the path of my Symfony project : <code>/srv/www/testsite.local/public_html/Symfony/</code></p>
  
  <p>And here my (basic) config of Nginx (<code>/etc/nginx/sites-available/testsite.local</code>):</p>
  
  <pre><code>server {
      server_name testsite.local;
      access_log /srv/www/testsite.local/logs/access.log;
      error_log /srv/www/testsite.local/logs/error.log;
      root /srv/www/testsite.local/public_html;
  
      location / {
          index index.html index.htm index.php;
      }
  
      location ~ \.php$ {
          include /etc/nginx/fastcgi_params;
          fastcgi_pass  127.0.0.1:9000;
          fastcgi_index index.php;
          fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      }
  }
  </code></pre>
  
  <p>If anyone has an idea of how to solve this issue, let me know. Any help would be very appreciated :)</p>
  
  <p>Thanks !</p>