V
V
viktortokarev8822017-11-23 18:37:54
Nginx
viktortokarev882, 2017-11-23 18:37:54

Reverse proxy from nginx to squid?

Bundle required: client <-> nginx <-> squid <-> site.
In nginx:

location / {
    proxy_pass http://37.59.62.38:8080/https://www.google.com;
}

37.59.62.38:8080 - proxy(squid).
Answer from squid:
5a16eb2d2361c115781596.png
The problem is that the header is: "GET / https://www.google.com ". It is required to remove the first "/", it is necessary to implement it in nginx.
Similar question: https://stackoverflow.com/questions/28331813/rever...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question