Welcome! Log In Create A New Profile

Advanced

Re: nginx_auth_mysql

Reinis Rozitis
August 09, 2010 12:22PM
> The php script will in turn do the authentication against ldap and will
> return either 201 (success!) or 401 (try again and auth will re-open).

If you are using just php you don't even need to change anything (at least
it works with my generic setup) within nginx configuration (unless you want
to protect static content which php has no control over).

The examples in http://php.net/manual/en/features.http-auth.php work just
fine.



>> I'll need this only to limit access to phpmyadmin and this will be
>> accesses only few times a week apparently).

phpMyAdmin provides http authentification itself (
http://wiki.phpmyadmin.net/pma/Auth_types ):
$cfg['Servers'][$i]['auth_type'] = 'http';

(it is still good to at least restrict IP access to the path as http auth is
plain text (especially if the DB server is accessible through public
networks) and the phpma has experienced some nasty exploitable bugs in past)


rr


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

nginx_auth_mysql

Adam Benayoun August 09, 2010 07:26AM

Re: nginx_auth_mysql

Maxim Dounin August 09, 2010 08:28AM

Re: nginx_auth_mysql

Adam Benayoun August 09, 2010 11:20AM

Re: nginx_auth_mysql

Reinis Rozitis August 09, 2010 12:22PM

Re: nginx_auth_mysql

agentzh August 09, 2010 11:02PM

Re: nginx_auth_mysql

agentzh August 09, 2010 11:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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