parse authentication header into $user $password

Gert Cuykens gert.cuykens at gmail.com
Tue Jun 26 07:50:18 UTC 2012


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?



More information about the nginx-devel mailing list