Why my url's are encoded in nginx.conf?

Basically I have this nginx.conf file where I receive some parameters from my index.html page form. One of these parameters is called $url and I use it to do a:

proxy_pass $url;

The thing is that the operation fails because the $url seem to be encoded and in my error.log file I see something like this:

[error] 18849#18849: *195088 invalid URL prefix in "http%3A%2F%2Fexample.com"

However, if I hardcode the operation like this:

proxy_pass 

or like this:

set $url_backup
proxy_pass $url_backup;

it works without any problem.

How can I fix the URL issue ? Thanks

4 Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like