Re: [squid-users] reverse proxy with domains

From: Henrik Nordstrom <henrik_at_henriknordstrom.net>
Date: Tue, 08 Jul 2008 01:51:19 +0200

On mån, 2008-07-07 at 18:05 -0500, Thomas E. Maleshafske wrote:
> 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

You could simplify even further

never_direct allow all
http_access allow all

with the never_direct rule being optional.. (implied by accel mode on
the http_port).

Regards
Henrik

Received on Mon Jul 07 2008 - 23:51:29 MDT

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