Welcome! Log In Create A New Profile

Advanced

basic_auth for parts of uwsgi

Christoph Egger
April 28, 2013 07:08AM
Hi!

I have the following problem:

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

> location / {
> include uwsgi_params;
> uwsgi_pass unix:/run/uwsgi/app/something/socket;
> }
>
> location /foo/ {
> auth_basic "LOGIN";
> auth_basic_user_file "/tmp/test/";
> }
>
> location /bar/ {
> auth_basic "LOGIN";
> auth_basic_user_file "/tmp/test/";
> }

nor

> location / {
> include uwsgi_params;
> uwsgi_pass unix:/run/uwsgi/app/something/socket;]
>
> location /foo/ {
> auth_basic "LOGIN";
> auth_basic_user_file "/tmp/test/foo";
> }
>
> location /bar/ {
> auth_basic "LOGIN";
> auth_basic_user_file "/tmp/test/bar";
> }
> }

Seem to pass /foo/ and /bar/ to the wsgi socket and I can't find a
solution on the interwebz.

Christoph

--
9FED 5C6C E206 B70A 5857 70CA 9655 22B9 D49A E731
Debian Developer | Lisp Hacker | CaCert Assurer

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

basic_auth for parts of uwsgi

Christoph Egger April 28, 2013 07:08AM

Re: basic_auth for parts of uwsgi

Francis Daly April 28, 2013 07:22AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 145
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready