Welcome! Log In Create A New Profile

Advanced

Re: Detects that the server is redirecting the address request cycle

Sharl.Jimh.Tsin
September 13, 2011 08:00AM
在 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@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.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Detects that the server is redirecting the address request cycle

liushaobo September 13, 2011 05:34AM

Re: Detects that the server is redirecting the address request cycle

Maxim Dounin September 13, 2011 07:38AM

Re: Detects that the server is redirecting the address request cycle

Sharl.Jimh.Tsin September 13, 2011 08:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 308
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready