basic_auth for parts of uwsgi

Francis Daly francis at daoine.org
Sun Apr 28 11:20:29 UTC 2013


On Sun, Apr 28, 2013 at 01:05:37PM +0200, Christoph Egger wrote:

Hi there,

> I'm running a uwsgi application using nginx on /. I would like to add
> authentication for /foo/ and /bar/.

One request is handled in one location.

In the one location that handles the request "/foo/something", you want
to have both "auth_basic" and "uwsgi_pass".

In the one location that handles the request "/not-foo/something", you
want to have "uwsgi_pass" but not "auth_basic".

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list