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
This archive was generated by hypermail pre-2.1.9 : Sat Dec 01 2007 - 12:00:02 MST