Welcome! Log In Create A New Profile

Advanced

soooo close: nginx gunicorn flask directory stripped from links

September 16, 2022 03:24AM
Hi,

I'm very close to getting my flask app properly reverse-proxied by nginx.

What works:

I can access and use my app successfully at http://127.0.0.1:8000.

I can get to my main page at http://my.domain/app. If I specifically
enter the url of a sub-directory/page I can get there, for example
http://my.domain/app works and http://my.domain/app/home works.

What doesn't:

But if I click on the "home" or any other link I get a file not found
error. Hovering over the link it points to http://my.domain/home instead
of http://my.domain/app/home. I have tried playing around with the
@app.routes but I don't seem to be getting anywhere.

What am I missing? (fwiw I'm doing all this locally without a hosting
service)

Thanks in advance for any ideas

_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-leave@nginx.org
Subject Author Posted

soooo close: nginx gunicorn flask directory stripped from links

biscotty September 16, 2022 03:24AM

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

Francis Daly September 16, 2022 03:50AM

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

biscotty September 16, 2022 04:04AM

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

Francis Daly September 16, 2022 04:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 159
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