Welcome! Log In Create A New Profile

Advanced

Re: Configure auth_basic with Nginx and Passenger

Maxim Dounin
August 12, 2011 05:18AM
Hello!

On Fri, Aug 12, 2011 at 04:18:12AM -0400, vincentp wrote:

> I'm trying to set up a basic authentication with Nginx.
>
> My server configuration look like that:

[...]

> The content of simple_authentication_user_file is simply:
> a:b

If you want to use plain text passwords, use

a:{PLAIN}b

instead (works in nginx 1.0.3+).

By default passwords are expected to be encrypted by crypt(3), see
[1]. The only exception is Windows version where is no crypt()
and passwords are treated as plain text by default (you may want
to use $apr1$ aka Apache md5 passwords on Windows as supported in
1.0.3+ for maximum security).

[1] http://wiki.nginx.org/HttpAuthBasicModule#auth_basic_user_file

Maxim Dounin

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

Configure auth_basic with Nginx and Passenger

vincentp August 12, 2011 04:18AM

Re: Configure auth_basic with Nginx and Passenger

Maxim Dounin August 12, 2011 05:18AM

Re: Configure auth_basic with Nginx and Passenger

vincentp August 12, 2011 12:03PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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