Answer the question
In order to leave comments, you need to log in
Can Nginx take the port for proxy_pass from the request?
Nginx works like a normal proxy. Receives requests of the following form: GET http://example.org/page.html
/etc/nginx/conf.d/proxy.conf:
server {
listen 3128;
resolver 8.8.8.8;
server_name _;
location / {
proxy_pass $scheme://$host$uri;
}
}
invalid URL prefix in "GET http://example.org/page.html 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