Answer the question
In order to leave comments, you need to log in
Nginx as another proxy frontend
Hello.
It is required to put a proxy chain. Well, let's say, Internet -> Nginx -> Squid
Don't ask why =) The
trouble is that when I declare in nginx
location / { proxy_pass http://squid:3128; proxy_set_header Host $http_host; }
GET/HTTP/1.1 Host: mysqhostname.com
GET http://mysqhostname.com/ HTTP/1.1 Host: mysqhostname.com
Answer the question
In order to leave comments, you need to log in
It's easier to configure squid so that "Host" understands:
http_port 3128 vhost
Are you sure that the GET must contain the http protocol and the domain? Never encountered anything like it. The domain is specified in host (as required) and the protocol is specified in the GET string. I think it's something else.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question