Re: nginx x-accel-redirect request method named location

2016-12-22 Thread hemendra26
Hi Ruslan (not sure), This works great.. It will do for my use case. Thanks a lot. Regards, Hemendra Posted at Nginx Forum: https://forum.nginx.org/read.php?2,271448,271675#msg-271675 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/ma

Re: nginx x-accel-redirect request method named location

2016-12-15 Thread Руслан Закиров
On Sat, Dec 10, 2016 at 9:08 PM, hemendra26 wrote: > I was using nginx x-accel-redirect as an authentication frontend for an > external db resource. > > In my python code I would do the following: > > /getresource/ > > def view(self, req, resp): > name = get_dbname(req.user.id) > resp.

Re: nginx x-accel-redirect request method named location

2016-12-14 Thread hemendra26
hemendra26 Wrote: --- > I was using nginx x-accel-redirect as an authentication frontend for > an external db resource. > > In my python code I would do the following: > > /getresource/ > > def view(self, req, resp): > name = get_dbname(r

nginx x-accel-redirect request method named location

2016-12-10 Thread hemendra26
I was using nginx x-accel-redirect as an authentication frontend for an external db resource. In my python code I would do the following: /getresource/ def view(self, req, resp): name = get_dbname(req.user.id) resp.set_header('X-Accel-Redirect', '/resource/%s/' %name ) This would for