Error: Rewrite or internal redirection cycle after some time

Maxim Dounin mdounin at
Mon Sep 17 19:20:47 UTC 2012


On Fri, Sep 14, 2012 at 02:47:09PM -0400, thiagotognoli wrote:

> My nginx configuration works fine, but suddenly after some time (mostly
> days) he begins to answer 3x and the error occurs in the log below for all
> requests:
> 2012/09/13 17:15:35 [error] 26027#0: *4923 rewrite or internal redirection
> cycle while processing "/index.php", client: 201.26.2.XXX, server:
>, request: "GET /checkout/cart/ HTTP/1.1", upstream:
> "fastcgi://unix:/var/run/php5-fpm-xxx.sock:", host: "",
> referrer: ""
> The error only after I reload nginx configuration with "/etc/init.d/nginx
> reload"
> What can it be?

My best guest is that somebody removes /index.php (to replace it 
with a new one?) + open_file_cache (configured at global level?) + 
the fact that there is infinite loop in your config if there is no 


Maxim Dounin

More information about the nginx mailing list