Welcome! Log In Create A New Profile

Advanced

proxy_pass $arg_uri Do not decode URL

November 04, 2017 02:03AM
nginx 1.12.2

I have a location rule like this to proxy external images:

location /imagesproxy {
resolver 8.8.8.8;
proxy_pass $arg_uri;
proxy_pass_request_headers off;
}

The problem is that nginx doesn't seems to decode the URI

/imagesproxy?uri=http%3A%2F%2Fwww.example.com%2Fwp-content%2Fuploads%2F2015%2F07%2Fportada-otra-vez-tu-667x1000.png

error.log:
[error] 16159#16159: *3602114 invalid URL prefix in "http%3A%2F%2Fwww.alicekellen.com%2F

Any ideas?

Thank you!

-m
Subject Author Posted

proxy_pass $arg_uri Do not decode URL

minutero November 04, 2017 02:03AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 299
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready