Re: [squid-users] using rep_mime_type in icap_access

From: Alex Rousskov <rousskov@dont-contact.us>
Date: Thu, 03 Apr 2008 08:44:57 -0600

On Thu, 2008-04-03 at 16:22 +0530, selvi nandu wrote:

> I only want the responses with the mime-types starting with text or
> application or multipart to enter the icap server.
>
> My squid config says:
>
> acl mimeblockp rep_mime_type ^text
> acl mimeblockp rep_mime_type ^application
> acl mimeblockp rep_mime_type ^multipart
>
> icap_enable on
> icap_service service_resp respmod_precache 0 icap://172.16.1.225:1344/respmod
> icap_class class_resp service_resp
> icap_access class_resp !mimeblockp
> icap_access class_resp allow all
>
> When i access the responses of type image/jpeg, still the response
> goes to the icap server.
>
> What could be the problem?

I believe there is a syntax error on the first icap_access line. I
believe you need "deny" there. You should see something like this when
you start Squid:

| aclParseAccessLine: expecting 'allow' or 'deny', got '!mimeblockp'.

If you think that Squid should fail to start when the configuration file
contains errors please join the club and help me convince others that
the current policy of skipping faulty squid.conf rules is wrong.

HTH,

Alex.
Received on Thu Apr 03 2008 - 08:45:08 MDT

This archive was generated by hypermail 2.2.0 : Thu May 01 2008 - 12:00:04 MDT