Re: [squid-users] Configure squid based on content type of http response

From: ying lcs <[email protected]>
Date: Fri, 9 Nov 2007 22:32:35 -0600

On Nov 9, 2007 9:59 PM, Henrik Nordstrom <henrik@henriknordstrom.net> wrote:
> On tis, 2007-10-30 at 15:21 -0600, Dmitry S. Makovey wrote:
>
> > /etc/squid/squid.conf:
> > ...
> > acl plain_content rep_mime_type -i text/plain
> > # http_reply_access allow GET_method xml_content from_clients
> > redirect_program /usr/local/bin/myscript
> > redirector_access plain_content
>
> rep_mime_type is only valid in http_reply_access, as it needs the
> response in order to compute..
>
> the url rewriter/redirector is called before the request is forwarded,
> and can not know the response...
>
>
> It's possible to do something close to the requested feature by using
> http_reply_access and deny_info.
>

Thank you. Can you please provide an example of http_reply_access?

> Regards
> Henrik
>
Received on Fri Nov 09 2007 - 21:32:38 MST

This archive was generated by hypermail pre-2.1.9 : Sat Dec 01 2007 - 12:00:02 MST