Welcome! Log In Create A New Profile

Advanced

Re: Problem with uWSGI and PATH_INFO

July 27, 2017 11:26AM
> Hi Roberto,
>
>
> Le 2017-07-27 à 09:52, Roberto De Ioris a écrit :
>>
>>> Hi again, this is not what manage-script-name is for. It is a
>>> uWSGI-specific option for when you only PATH_INFO and you want to
>>> generate
>>> SCRIPT_NAME accordingly. This requires to "mount" apps under specific
>>> paths.
> Ok. I really don't want to "mount" my app under a specific script name.
>>> uWSGI by itself does not rewrite the vars passed by the webserver, if
>>> you
>>> want to do it you have to use internal routing accordingly (or use a
>>> WSGI
>>> middleware that is generally more handy and portable, albeit annoying
>>> if
>>> you already have an entry point)
> Nginx internal routing seems a reasonable choice here. My app is looking
> like this:
>
> dispatch-django.uwsgi:
>
> def application(environ, start_response):
> wsgi_app = make_app()
> return wsgi_app(environ, start_response)
>
> Then I invoke uwsgi like so:
>

I was meaning uWSGI internal routing :)

http://uwsgi-docs.readthedocs.io/en/latest/InternalRouting.html

and yes, for manage-script-name to have effect you need to specify the
mountpoint of your app like described here:

http://uwsgi-docs.readthedocs.io/en/latest/Snippets.html#multiple-flask-apps-in-different-mountpoints

(it is flask app but it is the same concept)

--
Roberto De Ioris
http://unbit.com
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Problem with uWSGI and PATH_INFO

Etienne Robillard July 27, 2017 07:48AM

Re: Problem with uWSGI and PATH_INFO

Etienne Robillard July 27, 2017 08:54AM

Re: Problem with uWSGI and PATH_INFO

roberto July 27, 2017 09:02AM

Re: Problem with uWSGI and PATH_INFO

Etienne Robillard July 27, 2017 09:20AM

Re: Problem with uWSGI and PATH_INFO

roberto July 27, 2017 09:54AM

Re: Problem with uWSGI and PATH_INFO

Etienne Robillard July 27, 2017 10:22AM

Re: Problem with uWSGI and PATH_INFO

roberto July 27, 2017 11:26AM

Re: Problem with uWSGI and PATH_INFO

Francis Daly July 27, 2017 11:26AM

Re: Problem with uWSGI and PATH_INFO

Etienne Robillard July 27, 2017 12:08PM

Re: Problem with uWSGI and PATH_INFO

roberto July 27, 2017 12:50PM

Re: Problem with uWSGI and PATH_INFO

Etienne Robillard July 27, 2017 01:06PM

Re: Problem with uWSGI and PATH_INFO

roberto July 27, 2017 01:46PM

Re: Problem with uWSGI and PATH_INFO

Etienne Robillard July 27, 2017 05:42PM

Re: Problem with uWSGI and PATH_INFO

roberto July 28, 2017 03:28AM

Re: Problem with uWSGI and PATH_INFO

Francis Daly July 28, 2017 03:18AM

Re: Problem with uWSGI and PATH_INFO

Etienne Robillard July 29, 2017 06:10AM

Re: Problem with uWSGI and PATH_INFO

Etienne Robillard August 05, 2017 11:50AM

Re: Problem with uWSGI and PATH_INFO

Francis Daly August 06, 2017 06:00AM

Re: Problem with uWSGI and PATH_INFO

roberto August 06, 2017 06:30AM

Re: Problem with uWSGI and PATH_INFO

Etienne Robillard August 06, 2017 06:54AM

Re: Problem with uWSGI and PATH_INFO

roberto August 06, 2017 10:12AM

Re: Problem with uWSGI and PATH_INFO

Etienne Robillard August 07, 2017 05:08AM

Re: Problem with uWSGI and PATH_INFO

Francis Daly August 08, 2017 02:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 217
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready