[squid-users] cache_peer_domain help

From: Nick Duda <nduda@dont-contact.us>
Date: Tue, 15 Apr 2008 15:51:15 -0400

I have a transparent 2.6 stable 19 setup. Its working for just one port 80 redirect but now I need it to redirect to a different internal server on port 80 for a certain domain only.

Can someone help me with a basic config, here is what I need:

- Squid listening in transparent mode on port 80
- Any request to port 80 goes to a cache_peer (internal IIS server) at 192.168.1.10
- Any request to port 80 for a certain url www.example.com goes to a cache_peer (another internal IIS server) at 192.168.1.20

Here is what I suspect the config would have looked like, but didn't work (example):

http_port 80 accel vhost

cache_peer 192.168.1.10 parent 80 no-query originserver
cache_peer 192.168.1.20 parent 80 no-query originserver

cache_peer_domain 192.168.1.20 example.com

What do I need to do for this to happen?

- Nick
Received on Tue Apr 22 2008 - 16:32:53 MDT

This archive was generated by hypermail 2.2.0 : Thu May 01 2008 - 12:00:04 MDT