auth_request with vhost conf files

Francis Daly francis at daoine.org
Wed Apr 8 07:14:50 UTC 2020


On Mon, Apr 06, 2020 at 08:35:58PM -0400, lsces wrote:

Hi there,

> The question now is do I have the right setup for proxy_pass 
> 
> do need the 
> resolver 8.8.8.8;
> proxy_pass https://indiastudycircle.org/auth/auth.php?content_id=$query; 
> 
> but is there another way of getting it to use a local link to the vhost
> defined server?

I'm not quite sure where "the thing that handles the /auth/auth.php
request" is running. "proxy_pass" is for "something other than this
server{} block", so if this "local link" is effectively remote, then
proxy_pass is probably good to use.

If you control the IP address of the proxy_pass'ed server, you could
define an "upstream" of that name, with the suitable "server" address; or
you could use the IP address directly here, and then use "proxy_ssl_name"
and/or "proxy_set_header" and friends, to ensure validation work as
it should.

Good luck with it,

	f
-- 
Francis Daly        francis at daoine.org


More information about the nginx mailing list