Re: [squid-users] reverse proxy with domains

From: Thomas E. Maleshafske <admin_at_maleshafske.com>
Date: Mon, 07 Jul 2008 18:05:38 -0500

Henrik Nordstrom wrote:
> On mån, 2008-07-07 at 15:10 -0500, Thomas E. Maleshafske wrote:
>
>> IN squid.conf
>>
>
> It's not needed to list the sites in squid.conf unless you need to send
> different sites to different backend web servers.
>
> If you have only one web server (or cluster) then just cache_peer is
> sufficient without cache_peer_access/domain.
>
> If you need to route requests to different servers then acls needs to be
> built on domains, hostnames or other URL patterns enabling Squid to
> decide where to route the request.
>
> Regards
> Henrik
>
I managed to figure it out on a hunch.
http_port 80 accel vhost
forwarded_for on

refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 0 20% 4320

cache_peer 192.168.0.11 parent 80 0 originserver default
acl maleshafske dstdomain .example.com
http_access allow example

the key being the "." before example.com

That makes it function as a wild card
Received on Mon Jul 07 2008 - 23:05:45 MDT

This archive was generated by hypermail 2.2.0 : Tue Jul 08 2008 - 12:00:04 MDT