Detects that the server is redirecting the address request cycle

Maxim Dounin mdounin at mdounin.ru
Tue Sep 13 11:35:58 UTC 2011


Hello!

On Tue, Sep 13, 2011 at 07:32:06AM -0400, liushaobo wrote:

> hi all
> 
> add "       if ($http_referer ~* "www.test.com") {
>                 rewrite    ^/(.*)$       http://www.xxx.com permanent;
>         }"
> 
> open browser 出现 “	
> This redirect page is incorrect
> Detects that the server is redirecting the address request cycle“
> 
> remove  "       if ($http_referer ~* "www.test.com") {
>                 rewrite    ^/(.*)$       http://www.xxx.com permanent;
>         }"
> are normal

You've asked nginx to do infinite redirect, and you've got it.  
It's not clear what you are asking about.

Maxim Dounin



More information about the nginx mailing list