Search squid archive

Re: icap service error message?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sigh. It appears that this works under 3.2, NOT 3.1

Thanks anyway.

Amos Jeffries wrote:
On Sun, 15 May 2011 09:58:45 -0400, Farokh Irani wrote:
I'm trying to use a custom error message for an icap service, but I
can't seem to get it to work. Here's what I have in my squid.conf:

icap_enable on
icap_io_timeout 30 minutes
icap_preview_enable off
icap_send_client_ip on
icap_service service_req reqmod_precache bypass=off
icap://127.0.0.1:1344/dlp
adaptation_access service_req deny revol_cc_ok
adaptation_access service_req allow all
error_directory /usr/share/squid3/errors/English
deny_info dlp_err.html service_req


I added dlp_err.html to the /usr/share/squid3/errors/English directory.

Any ideas on why it doesn't send the dlp_err.html file when the icap
service returns a 403 error?

"service_req" is not an ACl name. deny_info is linked to ACL names and
only has effect when a access deny happens due to that ACL.

You may strike it very lucky and get http_reply_access to work with a
http_status ACL. I'm not able to see anywhere where the reply access is
tested for adaptation REQMOD though.

Amos


--
Farokh Irani
farokh@xxxxxxxxxxxxxxx
Skype: farokhitp
Phone: 914-262-1594



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux