Using Nginx auth in PHP scripts

Francis Daly francis at daoine.org
Tue Feb 26 22:35:21 UTC 2013


On Tue, Feb 26, 2013 at 05:26:49PM -0500, B.R. wrote:

> I feel like I am a noob... oO

The problem is due to how nginx directives are inherited to different
levels. It's consistent within nginx, so once you learn it you can apply
it to all directives which inherit.

Just put your new fastcgi_param directive at the same level as the others
(which are in the "include" file).

So, either:

>         include         conf.d/includes/fastcgi.conf;

put "fastcgi_param" here, or

> #                fastcgi_param   MY_GREAT_USER      $remote_user;

put "include" here.

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list