Re: how can I use external URI with the auth_request module

2017-02-23 Thread Litichevskij Vova
Thank you, Francis, for your answer. The question is more metaphysical, actually, — why the module what declares that it "implements client authorization based on the result of a subrequest" does not allow to use direct external URI as value for the address of this "sbrequest"; and the subrequest

Re: how can I use external URI with the auth_request module

2017-02-22 Thread Francis Daly
On Wed, Feb 22, 2017 at 03:55:48AM +0200, Litichevskij Vova wrote: Hi there, > Or in this way with named location: > > server { > > location / { > auth_request @auth; > proxy_pass http://protected.resource; > } > > location @auth { > proxy_pass http://extern

how can I use external URI with the auth_request module

2017-02-21 Thread Litichevskij Vova
Hello! up vote <> down vote <>favorite I'm trying to use nginx's ngx_http_auth_request_module in such way: server { location / { auth_request http://external.url;