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

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Sat, 10 Nov 2007 04:59:53 +0100

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.

Regards
Henrik

Received on Fri Nov 09 2007 - 20:59:59 MST

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