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

From: Amos Jeffries <squid3@dont-contact.us>
Date: Thu, 1 Nov 2007 10:34:52 +1300 (NZDT)

> Dmitry,
>
> Thank you for your help. But after I added this in my squid conf.
> Squid stops working.
> When I hit my browser via Squid to get content, nothing returns. No
> even non 'text/plain' content. Can you please tell me what am i
> missing?

Needing redirectors is a little messy and uses extra resources. You can
add this nice hack to speed the performance a bit and make it a lot easier
to understand.

acl plainText rep_mime_type -i ^text/plain$
deny_info http://your.server/dummy.txt plainText
http_reply_access deny plainText

- will redirect all users to the dummy.txt page ONLY when the access line
causes a deny.

Amos
Received on Wed Oct 31 2007 - 15:34:55 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Nov 01 2007 - 13:00:02 MDT