Reverse proxy to forward proxy to internet access

Francis Daly francis at daoine.org
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
> 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 at daoine.org


More information about the nginx mailing list