Re: [squid-users] reverse proxy with domains

From: Thomas E. Maleshafske <admin_at_maleshafske.com>
Date: Mon, 07 Jul 2008 20:02:03 -0500

Henrik Nordstrom wrote:
> 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
>
But if your in a hosting enviroment, a very quick and effective way of
taking a client offline due to one reason or another is to comment their
acl
could be that they forgot to pay renewal or something that nature and
give them a grace period to fix it.

It has its benefits with doing it this way, but I see your point to.

V/r
Thomas E. Maleshafske
Received on Tue Jul 08 2008 - 01:02:13 MDT

This archive was generated by hypermail 2.2.0 : Wed Jul 09 2008 - 12:00:03 MDT