Reverse proxy to forward proxy to internet access

Miten Mehta indiamiten at
Mon May 29 11:03:46 UTC 2023

Hi Francis Daly,

client -> reverse proxy:
reverse proxy to forward proxy: I'm not sure how
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 at> 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
> >
> Here, $request_uri would start with /, so it would not Just Work as-is.
> I'm not sure how is
> different from a "normal"
> 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 at
> _______________________________________________
> nginx mailing list
> nginx at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list