title: Symfony 2: 404 Not Found Error when tryes to open /app_dev.php
body: <p>I am getting this error message when try to open </p>
  
  <p>/app_dev.php</p>
  
  <pre><code>An error occurred while loading the web debug toolbar (404: Not Found).
  
  Do you want to open the profiler?
  </code></pre>
  
  <p>When I click ok, I am getting then the error:</p>
  
  <pre><code>app_dev.php/_profiler/5053258a822e1
  </code></pre>
  
  <p>and</p>
  
  <pre><code>404 Not found
  </code></pre>
  
  <p>I am using nginx</p>
  
  <p>Thank you very much for your help.</p>
  
  <p>EDIT: Here is the error log:</p>
  
  <pre><code>[error] 18369#0: *9 open() "/var/www/Symfony/web/app_dev.php/_wdt/5056f875afc98" failed (20: Not a directory), client: 127.0.0.1, server: symfony, request: "GET /app_dev.php/_wdt/5056f875afc98 HTTP/1.1", host: "symfony", referrer: "http://symfony/app_dev.php"
  [error] 18369#0: *9 open() "/var/www/Symfony/web/404" failed (2: No such file or directory), client: 127.0.0.1, server: symfony, request: "GET /app_dev.php/_wdt/5056f875afc98 HTTP/1.1", host: "symfony", referrer: "http://symfony/app_dev.php"
  </code></pre>
  
  <p>EDIT 2:</p>
  
  <p>When i try to access app_dev.php the page opens but without the toolbar and when I try with app_dev.php/ I am getting the </p>
  
  <pre><code>**Oops! An Error Occurred
  The server returned a "404 Not Found".
  Something is broken. Please e-mail us at [email] and let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused. **
  </code></pre>
  
  <p>error.</p>