Search squid archive

Re: reverse proxy with domains

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux