> Hi, > > On Mon, Nov 11, 2013 at 4:54 PM, Alain Meunier <[email protected]> wrote: > >> I would like to know if it is possible to pass datas from nginx to uwsgi >> (that is possible) but to make uwsgi answer to nginx so that nginx is >> able >> to keep going its logic and redirect to a file. >> >> Not very clear. Here is what I think : >> >> User -> (sends post/get to server) >> Nginx -> (proxies post/get to uwsgi) >> -> Uwsgi -> (uwsgi treats the command according to the application logic >> and yields a boolean : 0 or 1; it is arbitrary and coded in the >> application >> logic. So replace 0 and 1 with whatever you want.) >> -> Nginx -> (Nginx reads that result and acts accordingly : if 1 proxy >> to >> file if 0 sends 0 back to the user.) >> -> User (gets file or 0; this case is treated with javascript) >> >> Is there a possibility ? >> > > I think this is exactly what you are looking for no? > > http://wiki.nginx.org/X-accel > >
+1 I always forget that X-Accel-Redirect is more versatile than X-Sendfile -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
