Using Nginx auth in PHP scripts

Francis Daly francis at daoine.org
Tue Feb 26 21:30:25 UTC 2013


On Tue, Feb 26, 2013 at 04:23:14PM -0500, B.R. wrote:

Hi there,

> But does the auth_basic
> module<http://nginx.org/en/docs/http/ngx_http_auth_basic_module.html>allows
> you to load the username in a Nginx variable?
> From what I understand everything is processed internally.

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

$remote_user is what you want as the nginx variable, if you are using
http basic authentication.

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list