Hi Francis Daly,
client -> reverse proxy: https://myreverseproxy.com/https://mypub/somepath
reverse proxy to forward proxy: I'm not sure how https://forwardproxy.com/
https://mypub/somepath https://myreverseproxy.com/https://mypub/somepath
I was trying to append the actual url into the reverse proxy so in its
config we can easily user $request_uri and pass it along and may be
thinking that is what you meant by "http through proxy" and forward proxy
will be able to interpret and do needful. like you said some forward proxy
will be able to do it and if so then above looks good to me.
On Sat, May 27, 2023 at 1:18 PM Francis Daly <francis@daoine.org> wrote:
> On Fri, May 26, 2023 at 04:18:59PM +0530, Miten Mehta wrote:
>
> Hi there,
>
> > Thanks for guidance. If i enable direct internet access from reverse
> proxy
> > then can i just use proxy_pass $request_uri and have user format his url
> as
> > https://myreverseproxy.com/https://mypub/somepath.
>
> Here, $request_uri would start with /, so it would not Just Work as-is.
>
> I'm not sure how https://myreverseproxy.com/https://mypub/somepath is
> different from a "normal" https://myreverseproxy.com/mypub/somepath
> with a "normal" nginx config based on
>
> location ^~ /mypub/ { proxy_pass https://mypub/; }
>
> (plus the supporting configuration). So then you have a "normal" nginx
> proxy_pass setup for specific remote web servers.
>
> Which should Just Work like any other proxy_pass configuration.
>
> Good luck with it,
>
> f
> --
> Francis Daly francis@daoine.org
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> https://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx