Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

Re: basic_auth for parts of uwsgi

$
0
0
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@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Viewing all articles
Browse latest Browse all 53287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>