rewrite or internal redirection cycle

Michael Barrett loki77 at gmail.com
Thu Apr 21 03:21:17 MSD 2011


Hi, I have the following rewrite rule:

    location = / {
        if ($vanity) {
            rewrite ^/$ /?static_event_cache=1? last;
        }   
    }


Whenever I hit / & vanity is set I get the following error message:

Apr 20 16:16:58 stage-djcore-www1 nginx: 2011/04/20 16:16:58 [error] 30825#0: *103 rewrite or internal redirection cycle while processing "/", client: 10.203.66.146, server: , request: "GET / HTTP/1.1", host: "awesometown.eventbrite.com"

I get why I have the loop - but I thought (from reading another post online) that last would help.  Is there anyway to do something like this?

Thanks!

--
Michael Barrett
loki77 at gmail.com







More information about the nginx mailing list