Remove URI string?

Edho Arief edho at myconan.net
Thu Jan 10 14:42:39 UTC 2013


On Thu, Jan 10, 2013 at 9:29 PM, daveyfx <nginx-forum at nginx.us> wrote:
> 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.
>

clear your browser's history. Actually, don't use browser for testing
redirect. Use curl.

And make sure you've removed all other rewrites.



More information about the nginx mailing list