Can squid run behind nginx?

后端 未结 1 1603
孤城傲影
孤城傲影 2021-02-10 07:42

I\'m trying to run a squid server behind nginx. I configured nginx like this:

server {
    listen     8080;
    location / {
        proxy_pass   http://localhos         


        
相关标签:
1条回答
  • 2021-02-10 08:26

    Try proxy_set_header Request-URI $request_uri;

    In reply to your comment, you may also prefer to add:

    upstream _squid { server localhost:3128; } server { ... proxy_pass http://_squid/$host$uri; }

    0 讨论(0)
提交回复
热议问题