user authentication with nginx

smallfish smallfish.xy at gmail.com
Tue Aug 21 02:42:43 UTC 2012


try use ngx_lua module, in lua code check the db password etc.
example http 401 auth (simple chinse version):
http://chenxiaoyu.org/2012/02/08/nginx-lua-401-auth.html
--
blog: http://chenxiaoyu.org



On Mon, Aug 20, 2012 at 5:32 AM, Bob Stanton <farseas at gmail.com> wrote:

> I want to find a secure but simple method for authenticating users in an
> Nginx environment.
>
> I have succeeded in figuring out the auth_basic mod but that does not meet
> my needs.
>
> I specifically want to supply my own form, get the username and PW, check
> it against my DB with a CGI program, and then pass values back to Nginx.
>
> I need explained examples for nginx.conf.  I can write my own backend in C
> for authentication, that is not part of my question.
>
> 1) What should nginx.conf look like?
> 2) How are values passed back to nginx? signals? function return codes?
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20120821/ec4ac771/attachment.html>


More information about the nginx mailing list