Reverse proxy from nginx to squid

后端 未结 2 873
时光取名叫无心
时光取名叫无心 2021-02-06 11:37

Similar to this, I am trying to host a squid proxy behind nginx:

example.com - the main site

relay.example.com - the squid server.

相关标签:
2条回答
  • 2021-02-06 12:28

    I had this same problem, solved it by setting squid to run in transparent mode, like this:

    http_port 3128 transparent
    
    0 讨论(0)
  • 2021-02-06 12:30

    in nginx:

    proxy_pass http://@squid;
    

    in squid:

    http_port 3128 vhost
    

    and that's all you need for fix this https://imgur.com/qtgrZI9 error

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