Remove URI string?

daveyfx nginx-forum at nginx.us
Thu Jan 10 14:29:14 UTC 2013


Edho Arief Wrote:
-------------------------------------------------------
> On Thu, Jan 10, 2013 at 11:35 AM, daveyfx <nginx-forum at nginx.us>
> wrote:
> > I gave it a try and it did not work out.  My access log repeated the
> > following entry ~ 20 times.
> >
> > [09/Jan/2013:23:31:47 -0500] "GET / HTTP/1.1" 302 160 "-"
> "Mozilla/5.0
> > (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0"
> >
> > Firefox kindly informed me that "The page isn't redirecting
> properly"  I'm
> > guessing it's getting caught in an infinite redirect.
> >
> > Is there anything else I can try?
> >
> 
> location = / {
>   index index.html;
> }
> location / {
>   return 302 /;
> }
> 

Thank you for the suggestion Edho.  Unfortunately this still gave me a
redirect loop.

> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,234822,234906#msg-234906



More information about the nginx mailing list