Welcome! Log In Create A New Profile

Advanced

Re: parse authentication header into $user $password

Maxim Dounin
June 26, 2012 05:52AM
Hello!

On Tue, Jun 26, 2012 at 09:50:18AM +0200, Gert Cuykens wrote:

> location ~ ^/~(.+?)/(.*)$ {
> if ($user != $1) {return 403;}
> alias /home/$1/$2;
> auth_pam "Restricted";
> auth_pam_service_name "nginx";
> dav_methods PUT DELETE MKCOL COPY MOVE;
> dav_access group:rw all:r;
> create_full_put_path on;
> }
>
> Can this be implemented pleas?

Try $remote_user.

http://nginx.org/en/docs/http/ngx_http_core_module.html#variables

Maxim Dounin

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

parse authentication header into $user $password

Gert Cuykens 1215 June 26, 2012 03:52AM

Re: parse authentication header into $user $password

Maxim Dounin 549 June 26, 2012 05:52AM

Re: parse authentication header into $user $password

Gert Cuykens 666 June 26, 2012 03:12PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 235
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