title: nginx error "rewrite or internal redirection cycle" on CakePHP Project
body: <p>I have created a default CakePHP 2.4 project and created the Nginx configuration as follows but I am getting these errors from Nginx error log. What I have done wrong?</p>
  
  <p>My environment:</p>
  
  <ul>
  <li>Debian (wheezy)</li>
  <li>nginx/1.2.1</li>
  <li>project directory /var/www/backhaus</li>
  </ul>
  
  <p>The error is:</p>
  
  <blockquote>
    <p>$ 2014/06/14 09:39:22 [error] 5952#0: *1 rewrite or internal redirection cycle while processing "/backhaus", client: xxx.x.x.xx, server: azazel, request: "GET /backhaus HTTP/1.1", host: "azazel"</p>
  </blockquote>
  
  <p>Here is my config from <code>../sites-available/default</code>:</p>
  
  <pre><code>location /backhaus {
     root /var/www/backhaus/app/webroot/;
     index index.php;
     rewrite ^/* /backhaus;
     location ~ ^/(.+\.php)$ {
             try_files $uri $uri/ =404;
             include /etc/nginx/fastcgi_params;
             fastcgi_pass unix:/var/run/php5-fpm.sock;
             fastcgi_index index.php;
             fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
     }
   }
  </code></pre>