Auth_request PHP question

Francis Daly francis at
Fri Oct 30 19:32:32 UTC 2015

On Mon, Oct 26, 2015 at 08:44:45AM -0400, JaminVP wrote:

Hi there,

> I managed to get Nginx running with php-scripts, but I don't understand how
> the script is supposed to authenticate through auth_request.
> What is the script supposed to do to reject a request? I tried the header()
> function but that doesn't do much., then go back to the top of the page,
for the documentation.

You must send the correct http response code from the script.

Your language / library manual should say how to do that.

Good luck with it,

Francis Daly        francis at

More information about the nginx mailing list