Welcome! Log In Create A New Profile

Advanced

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

Francis Daly
September 19, 2022 07:30PM
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@daoine.org
_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-leave@nginx.org
Subject Author Posted

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

biscotty September 16, 2022 02:12PM

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

Francis Daly September 19, 2022 07:30PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 123
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready