Is there a way in nginx to proxy any url?

by nginxdreams   Last Updated September 11, 2019 19:00 PM - source

I would like to have an api like this:

that streams a response from Note in this case is just an example, this could be any pdf url.

So in nginx.conf sudo code:

    location ~* ^/(?<urlpath>.*)$ {
      proxy_pass $urlpath;

Is this possible with nginx + some other plugin? Looking for some pointers on implementing this.

Tags : nginx proxypass

Related Questions

nginx: problem configuring a proxy_pass

Updated April 04, 2015 05:00 AM

About proxy_pass nginx

Updated July 24, 2019 07:00 AM

Proxy_pass in nginx does not work

Updated June 02, 2016 08:00 AM

Proxy Pass Domain Nginx

Updated February 15, 2017 14:00 PM