Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm configuring a transparent proxy for my home, and I want certain URLs to go through an upstream proxy.

I'm currently using Squid, but I'm open to other suggestions.

I've looked at Squid's cache_peer options, but none seems to serve my purposes.

Is this even possible?

Edit: I also have nginx on the proxy machine, so maybe I can use that?

share|improve this question

Using a proxy-autoconfig (.pac) file to direct the client system to the proxy server(s) lets you define what hosts and domains get proxied through which server.

share|improve this answer
Sorry, forgot to mention I want to keep the transparent proxy part, because I want to use desktop apps which don't support configuring a proxy. – Ivan Jul 6 '11 at 15:35

It looks like the cache_peer_domain or cache_peer_access directives can do what you want.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.