Welcome! Log In Create A New Profile

Advanced

Proxy a URL received via GET-parameter

August 12, 2010 04:23AM
Hi guys!

I want nginx to serve (proxy) a URL, that i would deliver as a GET-parameter. For example a request could look like this:
/img?url=http%3A%2F%2Fwww.example.com%2Ffavicon.ico

and nginx now should try to fetch http://www.example.com/favicon.ico from the parameter "URL" and deliver it to the client.
I need this to deliver some files via SSL that are only available without it.

Is such a setup possible?

Thank you very much in advance for you help!

Kind regards from Germany!
Hendrik
Subject Author Posted

Proxy a URL received via GET-parameter

hendrik August 12, 2010 04:23AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 73
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready