Reverse proxy to forward proxy to internet access

Francis Daly francis at
Sat May 27 07:48:12 UTC 2023

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,

Francis Daly        francis at

More information about the nginx mailing list