Detects that the server is redirecting the address request cycle
Sharl.Jimh.Tsin
amoiz.shine at gmail.com
Tue Sep 13 11:58:14 UTC 2011
在 2011-09-13二的 15:35 +0400,Maxim Dounin写道:
> 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
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
well,the OP make nginx into DEAD-CYCLE while $Http_Refer equals the site
rewrite/redirect to.
i guess that the OP should do something on regex of $Http_refer.
--
Best regards,
Sharl.Jimh.Tsin (From China **Obviously Taiwan INCLUDED**)
Using Gmail? Please read this important notice:
http://www.fsf.org/campaigns/jstrap/gmail?10073.
More information about the nginx
mailing list