Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I con gure Squid forward all requests to another proxy?

forward gure proxy requests Squid
0
Posted

How do I con gure Squid forward all requests to another proxy?

0
10

Note: The information here is current for version 2.2. First, you need to give Squid a parent cache. Second, you need to tell Squid it can not connect directly to origin servers. This is done with three con guration le lines: cache_peer parentcache.foo.com parent 3128 0 no-query default acl all src 0.0.0.0/0.0.0.0 never_direct allow all Note, with this con guration, if the parent cache fails or becomes unreachable, then every request will result in an error message. In case you want to be able to use direct connections when all the parents go down you should use a di erent approach: cache_peer parentcache.foo.com parent 3128 0 no-query prefer_direct off The default behaviour of Squid in the absence of positive ICP, HTCP, etc replies is to connect to the origin server instead of using parents. The prefer_direct o directive tells Squid to try parents rst.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123