Hello!
On Fri, Nov 6, 2015 at 10:41 PM, Google User wrote:
> Thanks for the reply. I get no results with auth_request.
>
> location /index.php {
> auth_request /auth;
> }
>
Maybe you should check the nginx tutorials first to avoid such misuse:
http://openresty.org/#eBooks
auth_request is never supposed to be used alone since it does not
generate any content. It just initiates a subrequest (to another
location) and checks the status code of the subrequest to decide
whether to continue.
Basically, you should use auth_request, proxy_pass, srcache_fetch, and
srcache_store in a single location (for the main location).
Regards,
-agentzh