Using Nginx auth in PHP scripts

Francis Daly francis at
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<>allows
> you to load the username in a Nginx variable?
> From what I understand everything is processed internally.

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

Francis Daly        francis at

More information about the nginx mailing list