Answer the question
In order to leave comments, you need to log in
Nginx proxy to url from parameter?
Hello!
You need to proxy to the url that is specified in the request parameter. Here's what I'm trying but it doesn't work...
location / {
proxy_pass $arg_url;
add_header Access-Control-Allow-Origin *;
}
[error] 8#8: *1 invalid URL prefix in "ya.ru", client: 10.255.0.188, , request: "GET /?url=ya.ru HTTP/1.1"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question