Fwd: soooo close: nginx gunicorn flask directory stripped from links

Francis Daly francis at daoine.org
Mon Sep 19 23:29:04 UTC 2022


On Fri, Sep 16, 2022 at 12:11:05PM -0600, Brian Carey wrote:

Hi there,

> OK, sadly I was pre-mature in my explanation and claim of success, although
> the trailing slash was clearly an issue. Now I can use the application fine
> in the open browser  which I can see did implement my changes because I can
> move around in the app normally.
> 
> But I get too many redirects with other browsers or other instances of the
> same browser, which suggests to me that something was cached at some point
> in my testing that is allowing it to work. curl returns a 301 and firefox
> returns a too many redirects.

A 301 to the same Location: url will be a redirect loop; a 301 to a
different url may not be.

So right now, without involving nginx at all, can you fully use your
application if you point your browser at http://gunicorn:8080/, or if
you point your browser at http://gunicorn:8080/prefix/ ?

Once the upstream / backend is in a known state, adding nginx in front
should be more straightforward.

Cheers,

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list